{"id":55125,"date":"2020-04-02T15:30:03","date_gmt":"2020-04-02T20:30:03","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=55125"},"modified":"2020-04-02T15:30:03","modified_gmt":"2020-04-02T20:30:03","slug":"how-to-install-magento-ecommerce-software-for-your-business","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/","title":{"rendered":"How to Install Magento eCommerce Software for Your Business"},"content":{"rendered":"\n

If you’re looking for an eCommerce Solution for your business, installing Magento using cPanel is much easier than you think.<\/h1>\n\n\n\n

What is Magento?<\/h2>\n\n\n\n

No, not the metal-manipulating Super Villain<\/a> from the X-Men comics. Magento is one of the most popular open-source<\/a> eCommerce platforms for businesses on the internet. Built on the Zend Framework and written in PHP, Magento<\/a> is the “world’s leading platform for open commerce innovation.” Magento Partners<\/a> include a diverse portfolio of small, medium, and large businesses across the globe for B2B and B2C clients.<\/p>\n\n\n\n

According to kinsta.com<\/a>, Magento accounts for approximately 0.8% of all websites built on the internet, making it the 9th most popular CMS in the world, and comprising more than 187,500 live websites. If you’re a small business or burgeoning eCommerce solution requiring scalable shopping cart software that supports multiple payment gateway options, Magento may be the platform for your needs. Let’s get started!<\/p>\n\n\n\n

Preparing Your Server to Install Magento<\/h2>\n\n\n\n

First things first, you will need a hosting environment to install Magento in. You can choose a cPanel Partner<\/a> for hosting or select a hyperscaler to build a virtual environment to host your Magento website. For the installation method, we’re discussing today, root access (which includes WHM) will be required.<\/p>\n\n\n\n

You will need to make sure cPanel & WHM is installed on your server. Many hosts automatically set this up when you create your virtual server with them. If they don’t, you can read our step-by-step documentation for installing cPanel<\/a> onto your server. <\/p>\n\n\n\n

\"This<\/figure>\n\n\n\n

Configuring EasyApache 4 with Magento<\/h2>\n\n\n\n

Our next step will be to make sure EasyApache 4 is compatible with Magento in order to prepare your hosting environment properly. Follow these steps to ensure the process is successful.<\/p>\n\n\n\n

  1. From WHM, choose the option, “EasyApache 4.” (Home \u00bb Software \u00bb EasyApache 4).<\/em><\/li>
  2. Once there, click on “Customize” next to “Currently Installed Packages”.<\/li>
  3. Next, click on “Apache Modules” and search mod_version and as well mod_env and enable these options, then click “Next”.<\/li>
  4. The next section is titled “PHP Versions,” and no action is required here. Click “Next”.<\/li>
  5. In “PHP Extensions,” we will need to enable a number of options. Using the search feature, please find and enable the following PHP Extensions (please note, you are only required to use the extensions for PHP 7.2):
    1. intl<\/li>
    2. soap<\/li>
    3. zip<\/li><\/ol><\/li>
    4. After you have enabled the extension for each of the above, click on “Next.” <\/li>
    5. “Ruby via Passenger” is the next page, and no changes are required here so you can proceed ahead.<\/li>
    6. Next, we will review the final changes before making the update.<\/li>
    7. If everything seems correct, click on “Provision” at the bottom of the page. Please note: these changes are rather substantial, so be aware this will take a few minutes.<\/li>
    8. Once this is done, click on “Done” at the bottom of the page.<\/li><\/ol>\n\n\n\n

      Creating Your First cPanel Account in WHM<\/h2>\n\n\n\n

      Now that EasyApache is appropriately configured, let’s create a cPanel account<\/a> to set up a Magento installation.<\/p>\n\n\n\n

      \"This<\/figure>\n\n\n\n

      As we mentioned before, Magento requires PHP 7.2 or 7.3, and the PHP version must be set manually after the cPanel user is created if your server is running a version older than 7.2 or 7.3 (to see what version of PHP your server is running, you can run php -v<\/code> from the command line on your server, or create a phpinfo page<\/a>. To change a user’s PHP version, go to (WHM \u00bb <\/em>Home \u00bb Software \u00bb MultiPHP Manager)<\/em> and search for your user from the list of users and domains. After the cPanel user account is created, you can access the account by adding ‘\/cpanel’ to the end of the domain (i.e., testingsite.com\/cpanel<\/a>).<\/p>\n\n\n\n

      Now, sign in to the account using the username and password credentials you just created. Then, click “MySQL\u00ae Database Wizard.” where we will create a MySQL database that Magento requires to work properly.<\/p>\n\n\n\n

      \"This<\/figure>\n\n\n\n
      1. Enter a name for your database. For this tutorial, we’ll use the database name “magento.” Make a note of the prefix (the name that appears to the left of where you enter your database name, typically this is the cPanel username)<\/li>
      2. Next is to create the username (we’re using “magento” as the username)<\/li>
      3. Provide a password for this user and save it in a secure location. You are required to enter this information for our Magento installation.<\/li>
      4. Check the box to enable “ALL PRIVILEGES.”<\/li>
      5. Click on next and finally return home.
        <\/li><\/ol>\n\n\n\n

        How to Install Magento<\/h1>\n\n\n\n

        Our next step is to download the Magento software. For the sake of this walkthrough, we are going to be using Magento version 2.3.4. You should be able to find this version on Magento’s download page<\/a>. Please download the file in a standard zip format (the first option). <\/p>\n\n\n\n

        We need to transfer our Magento zip file to our server. We are going to do this using cPanel’s File Manager. Return to your cPanel account and go to the “File Manager.”<\/p>\n\n\n\n

        \"\"<\/figure>\n\n\n\n

        Once there, double click on “public_html” and then click on “Upload” from the top toolbar. Select the Magento 2.0 zip file you downloaded.<\/p>\n\n\n\n

        Please note that in this example, we are installing directly in public_html (primary domain). If you prefer to install this onto a subdomain, you can do this by adding the subdomain inside of your cPanel account and then uploading the Magento Zip file to that subdomain’s folder in your file manager.<\/p>\n\n\n\n

        Once the upload is complete, open your terminal. For this next section, you’re going to need to SSH as the root user to your server and operate as the cPanel user your Magento installation is located at:<\/p>\n\n\n\n

        bash-4.2$ ssh root@your.server.IP.here
        root@127.0.0.1's password:
        Last login: Tue Jan 28 09:44:53 2020 from *.*.*.*
        root@testingmagento# su cptechs
        [cptechs@testingmagento centos]$<\/code><\/p>\n\n\n\n

        Now, change to the directory that you have the Magento zip file. For example, as my Magento zip file is in my ‘public_html’ directory, I used the command:<\/p>\n\n\n\n

        cd \/home\/cptechs\/public_html\/<\/code><\/p>\n\n\n\n

        Run the command “ls” to confirm the Magento file is in this directory. For example:<\/p>\n\n\n\n

        [patrickstar@testing-magento public_html]$ ls<\/code>
        cgi-bin  Magento-CE-2.3.4-2020-01-16-11-19-26.zip<\/code><\/p>\n\n\n\n

        Now, we are going to unzip the file. Enter the command ‘unzip,’ then enter ‘M’ and press the tab key. This should complete the line, and it should appear as below:<\/p>\n\n\n\n

        [patrickstar@testing-magento public_html]$ unzip Magento-CE-2.0.18-2018-02-23-02-07-53.zip<\/code><\/p>\n\n\n\n

        The file will unzip. When this finishes, please run these 3 commands in the order that I have presented for you:
        <\/p>\n\n\n\n

        find var generated vendor pub\/static pub\/media app\/etc -type f -exec<\/code> chmod<\/code> u+w {} +<\/code><\/p>\n\n\n\n

        find var generated vendor pub\/static pub\/media app\/etc -type d -exec<\/code> chmod<\/code> u+w {} +<\/code><\/p>\n\n\n\n

        chmod<\/code> u+x bin\/magento<\/code><\/p>\n\n\n\n

        Magento’s developers wrote this command, and it corrects the necessary permissions to use the files created. Lastly, we have one final terminal change to make. Please run the command ‘exit’ to return to the root user. For example:<\/p>\n\n\n\n

        [cptechs<\/code>@testingmagento<\/code> centos]$ <\/code>exit<\/code>
        exit<\/code>
        [root<\/code>@testing<\/code>-magento ~]#<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n


        Next, please run the command:<\/p>\n\n\n\n

        vi \/opt\/cpanel\/ea-php72\/root\/etc\/php.ini
        <\/code>
        Now that you are using vi (a Linux text editor), type the following: \/always_populate<\/code> and press enter. You are taken to this line:

        <\/p>\n\n\n\n

        \"This<\/figure>\n\n\n\n




        Under this line, we need to add a new rule. To do this, press ‘i’ on your keyboard to edit “INSERT” mode. Please add this line of text.<\/p>\n\n\n\n


        always_populate_raw_post_data = -1<\/code>

        The new configuration should look like this:<\/p>\n\n\n\n

        \"This<\/figure>\n\n\n\n

        Now to exit ‘vi,’ please enter the following, hit the Esc, type :wq<\/code> , and then press enter to exit the text editor, then check your website (If you used a different subdomain, you would go to yourwebsite.com\/subdomain\/setup<\/a>)! We should now be greeted with the Magento Setup Wizard. Please proceed as necessary. <\/p>\n\n\n\n

        \"This<\/figure>\n\n\n\n

        1.) Readiness Check – You should be greeted with all Greens!
        2.) Enter your database details as you did inside of cPanel. (Please keep in mind, you must also enter the ‘prefix’ for your username. For example username_magento)<\/p>\n\n\n\n

        \"This<\/figure>\n\n\n\n


        3.) You can leave this as default. (Make sure you copy and keep your Magento Admin Address for later use)
        4.) Enter your store details, such as the time zone and currency used.
        5.) Create your admin account for the Magento plugin. Make sure you keep these credentials in a safe and secure location and keep them handy.
        6.) Install Now: Stand by and let the installer finish its course:<\/p>\n\n\n\n

        \"This<\/figure>\n\n\n\n

        When finished, click on “Launch Magento Admin” to sign in to the Magento Admin User. Your website is ready for eCommerce!<\/p>\n\n\n\n

        Installing Magento onto a cPanel server can be a bit tedious, but very worth it for the eCommerce infrastructure that it provides. The next step on your journey is building out your brand new eCommerce site! The Magento Community has a wealth of resources<\/a> for the new and expert user alike. If you would like to reference the Magento documentation, you may do so here<\/a>. Finally, if you have any questions, or would like to continue discussing this topic, please make sure to join us on our official Discord<\/a> channel, our cPanel Subreddit<\/a>, or our official Forums<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"

        If you’re looking for an eCommerce Solution for your business, installing Magento using cPanel is much easier than you think. What is Magento? No, not the metal-manipulating Super Villain from the X-Men comics. Magento is one of the most popular open-source eCommerce platforms for businesses on the internet. Built on the Zend Framework and written in PHP, Magento is the “world’s […]<\/p>\n","protected":false},"author":77,"featured_media":65345,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49,61],"tags":[],"class_list":["post-55125","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-products","category-tips-and-tricks"],"acf":[],"yoast_head":"\nHow to Install Magento eCommerce Software for Your Business | cPanel<\/title>\n <!-- Mirrored from cpanel.net/wp-json/wp/v2/posts/55125/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 06 Sep 2024 09:56:15 GMT --> <meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=_-2215.html \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Magento eCommerce Software for Your Business | cPanel\" \/>\n<meta property=\"og:description\" content=\"If you’re looking for an eCommerce Solution for your business, installing Magento using cPanel is much easier than you think. What is Magento? No, not the metal-manipulating Super Villain from the X-Men comics. Magento is one of the most popular open-source eCommerce platforms for businesses on the internet. Built on the Zend Framework and written in PHP, Magento is the “world’s […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/\" \/>\n<meta property=\"og:site_name\" content=\"cPanel\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cpanel\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-02T20:30:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devel.www.cpanel.net\/wp-content\/uploads\/2020\/04\/BH-Magento_Social.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"474\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"cPanel Community\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cPanel\" \/>\n<meta name=\"twitter:site\" content=\"@cPanel\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cPanel Community\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/\",\"url\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/\",\"name\":\"How to Install Magento eCommerce Software for Your Business | cPanel\",\"isPartOf\":{\"@id\":\"https:\/\/devel.www.cpanel.net\/#website\"},\"datePublished\":\"2020-04-02T20:30:03+00:00\",\"dateModified\":\"2020-04-02T20:30:03+00:00\",\"author\":{\"@id\":\"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8\"},\"breadcrumb\":{\"@id\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/devel.www.cpanel.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Magento eCommerce Software for Your Business\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/devel.www.cpanel.net\/#website\",\"url\":\"https:\/\/devel.www.cpanel.net\/\",\"name\":\"cPanel\",\"description\":\"Hosting Platform of Choices\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/devel.www.cpanel.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8\",\"name\":\"cPanel Community\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g\",\"caption\":\"cPanel Community\"},\"description\":\"The web hosting industry's most reliable management solution since 1997. With our first-class support and rich feature set, it's easy to see why our customers and partners make cPanel & WHM their hosting platform of choice. For more information, visit cPanel.net.\",\"sameAs\":[\"https:\/\/cpanel.net\"],\"url\":\"https:\/\/devel.www.cpanel.net\/blog\/author\/cpadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Magento eCommerce Software for Your Business | cPanel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento eCommerce Software for Your Business | cPanel","og_description":"If you’re looking for an eCommerce Solution for your business, installing Magento using cPanel is much easier than you think. What is Magento? No, not the metal-manipulating Super Villain from the X-Men comics. Magento is one of the most popular open-source eCommerce platforms for businesses on the internet. Built on the Zend Framework and written in PHP, Magento is the “world’s […]","og_url":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/","og_site_name":"cPanel","article_publisher":"https:\/\/www.facebook.com\/cpanel\/","article_published_time":"2020-04-02T20:30:03+00:00","og_image":[{"width":1200,"height":474,"url":"https:\/\/devel.www.cpanel.net\/wp-content\/uploads\/2020\/04\/BH-Magento_Social.gif","type":"image\/gif"}],"author":"cPanel Community","twitter_card":"summary_large_image","twitter_creator":"@cPanel","twitter_site":"@cPanel","twitter_misc":{"Written by":"cPanel Community","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/","url":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/","name":"How to Install Magento eCommerce Software for Your Business | cPanel","isPartOf":{"@id":"https:\/\/devel.www.cpanel.net\/#website"},"datePublished":"2020-04-02T20:30:03+00:00","dateModified":"2020-04-02T20:30:03+00:00","author":{"@id":"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8"},"breadcrumb":{"@id":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/devel.www.cpanel.net\/blog\/products\/how-to-install-magento-ecommerce-software-for-your-business\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devel.www.cpanel.net\/"},{"@type":"ListItem","position":2,"name":"How to Install Magento eCommerce Software for Your Business"}]},{"@type":"WebSite","@id":"https:\/\/devel.www.cpanel.net\/#website","url":"https:\/\/devel.www.cpanel.net\/","name":"cPanel","description":"Hosting Platform of Choices","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devel.www.cpanel.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8","name":"cPanel Community","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g","caption":"cPanel Community"},"description":"The web hosting industry's most reliable management solution since 1997. With our first-class support and rich feature set, it's easy to see why our customers and partners make cPanel & WHM their hosting platform of choice. For more information, visit cPanel.net.","sameAs":["https:\/\/cpanel.net"],"url":"https:\/\/devel.www.cpanel.net\/blog\/author\/cpadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/posts\/55125"}],"collection":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/comments?post=55125"}],"version-history":[{"count":0,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/posts\/55125\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/media\/65345"}],"wp:attachment":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/media?parent=55125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/categories?post=55125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/tags?post=55125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}