How to Install Magento on CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

17 Responses

  1. Ahmer Mansoor says:

    Hi, Good article, but you have missed the SELinux settings therein. Please include.

  2. R Raut says:


    I installed Magento 2 and Zimbra with help of Tecmint articles. Thank you. Now I am looking Cluster installation for Magento 2. Will you please help me?

    Best regards..

  3. Anh Phan says:

    At step 15, I type in the URL with my IP address and a blank page shows up instead of the Installation Wizard. All proper steps have been taken without errors.

  4. kokogyi says:

    Hi Ravi Saive,

    Thanks a lot for your complete instruction. I do that your guide. I can Successful install Magento 2.2.0 in my centos 7.5, php = 7.0.30. RAM = 1GB, storage = 25GB.

    But after install my home page is broken (like css do not effect). Others pages was not found.

    • Ravi Saive says:


      Could you share the link to homepage? so that I can check it. Also have you installed the Magento on correct web server root directory?

  5. R R says:

    Hello, I have followed all steps. There is not problem with installation with magento 1 but with magento 2 I have getting this message “Vendor autoload is not found. Please run ‘composer install’ under application root directory.

    Will you please help me to solve this.

    Best regards..

    • Ravi Saive says:


      On Which Linux distributions are you trying to install Magento 2?

      • R R says:

        CentOS 7, Apache

        • Ravi Saive says:


          Magento Update installation dependencies as follows:

          First log in to your Magento Linux server, change to the Magento installation directory and run composer install as shown.

          # cd /var/www/html/magento2 && composer install

          This command updates package dependencies and can take a few minutes to complete.

  6. Jad Atoui says:

    One PHP extension missing: yum install php70u-soap

  7. Aaron Sullivan says:

    I am following this guide but having issues with php. I cannot get it to properly install. I get errors telling me conflicts the way you have it written and to use --skip-broken. didn’t work either.

    The phpinfo() page will not display anything except for the php tag that got echo’ed to the file. Any Idea?

    • Ravi Saive says:


      Please remove or disable any third party repo, before installing PHP version as in this guide. Because having multiple repositories sometimes conflict with each other..

  8. Nono says:

    I followed these steps for magento2 install on centos to no avail. The Ip/magento2/setup/ is not displaying the default installation as displayed above.

    >[[email protected] html]# ls -a
    . .git .htaccess index.php magento2 .travis.yml
    .. .gitignore .htaccess.sample info.php .php_cs
    >[[email protected] html]# cd magento2
    [[email protected] magento2]# ls -a
    . lib pub
    .. COPYING.txt LICENSE_AFL.txt
    app dev LICENSE.txt releases
    bin Gruntfile.js.sample magento setup index.php nginx.conf.sample var
    composer.json info.php package.json.sample vendor
    composer.lock php.ini.sample
    composer.phar ius-release.rpm phpserver
    [[email protected] magento2]#

    could you shed some light on what am i doing wrong here?

    Thank you in advance for your help.

  9. Ousman says:

    Hello Ravi,

    Is it possible to talk to you in private? I’m new on Magento and I will appreciate if you can help me to build my Magento Platform.


  10. Fayyaz Khattak says:

    Very informative and nicely written article. This will help beginners a lot to setup server and install Magento 2 store. I had also written a brief tutorial to install Magento 2 on Debian server. Please have a look at it:

    If you have any suggestions regarding my article, please note it down in the comments section.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.