Comments on How to Install Magento 2.1 on CentOS 7

In this tutorial, I will show you how to install Magento 2.1 with Nginx, PPHP 7.0 (FPM) and MySQL 5.7 on a CentOS 7 server. Magento is a widely used open source shop and content management system for e-commerce websites based on the PHP Zend Framework.

12 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Ousman

Hello,

Thanks a lot for this detailled procedure for Magento Installation. I follow exactly your procedure but at the end when I type http://<my server name>.com, I'm getting: 

 

Welcome to nginx on Fedora!

This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.

Website Administrator

This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

    Please Can you help to fix that? Best regards    

By: Guilherme Lima Flosi

Hello, mister. Thanks for the tutorial, it helped me a lot. I would like to know how you configured  the root configuration directive in the nginx configuration file. My issue is similar to Ousman's one.

By: Ian Richens

also getting this error, and a default 404 error on my admin login page, any input would be handy, i can't see any evidence of this happening to anyone who hasn't followed this tutorial.

By: Serge

Hi guys,After every restart /run/php/ directory disappear, I have to create it again. Please advise how to resolve it.Thanks,

I have the same issue, Did you ever get this resolved?

By: Nhat

 

It's a great so heplfull but I want to change base-url

--base-url="http://magento.hakase-labs.com" \--base-url-secure="https://magento.hakase-labs.com" \

into 

--base-url="http://nhat.kini3.com" \--base-url-secure="https://nhat.kini3.com" \

but it showes me notice about a key!

What should I do?

By: Maxi

Excelent tutorial! Works everytime that i used!

Can i suggest something?

add php70w-bcmath to the list of plugins for php, is required by composer when install M2.

Thanks!

By: ko ko gyi

Hi

Which value should I add? How to generate?

--key: generate your own key

By: siva

 

Hello,

 

Thanks a lot for this detailled procedure for Magento Installation. I follow exactly your procedure but at the end when I type http://.com, I'm getting: 

 

 

Welcome to nginx on Fedora!

This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.

Website Administrator

This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html.

 

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

    Please Can you help to fix that? Best regards

all works fine!

By: Alberto Braschi

Warning: SessionHandler::read(): open(/var/lib/php/fpm/session/sess_3bidvnksr85affekql0mdol11g, O_RDWR) failed: Permission denied

 

then execute:

chown -R nginx:nginx /var/lib/php/fpm/

 

By: M Aamir Ali

Sir, I express my deepest gratitude.

I absolutely despise working with anything PHP, this document makes it look easy

Thank you

I hope to one day help the world as your document did for me.