How to Install Magento on CentOS 7

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...

12 Responses

  1. 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:

      @Kokogyi,

      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?

  2. 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:

      @Raut,

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

      • R R says:

        CentOS 7, Apache

        • Ravi Saive says:

          @Raut,

          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.

  3. Jad Atoui says:

    One PHP extension missing: yum install php70u-soap

  4. 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:

      @Aaron,

      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..

  5. 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.

    ////content
    >[[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
    . CONTRIBUTING.md lib pub
    .. COPYING.txt LICENSE_AFL.txt README.md
    app dev LICENSE.txt releases
    bin Gruntfile.js.sample magento setup
    CHANGELOG.md index.php nginx.conf.sample var
    composer.json info.php package.json.sample vendor
    composer.lock ISSUE_TEMPLATE.md 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.

  6. 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.

    Thanks

  7. 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:

    cloudways.com/blog/install-magento-2-on-debian/

    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.