Thursday 7 May 2015

Create Magento Site Nginx 2015

Make directory under var/vhosts/www  and add magento files
go to ect/php-fpm.d/  create config file
go to ect/nginx/conf  create config file
Putty, login.
Add the following commands:
mysql;
create database databasenamehere;
grant all privileges on databasenamehere.* to 'usernamehere'@'localhost' identified by "passwordhere";  
exit;
service php-fpm restart;
service nginx restart;

close putty if no errors.


When you did the php-fpm restart both answers which popup should say ok in green if not follow the error message given this will be in the root: ect/php-fpm.d/ folder and file uploaded earlier. If this has taken other sites on the server down, download (so you have a copy to ammend) then delete the new config file you made earlier from the server. Make sure you get the right config file other wise you will loose the other sites forever.
Visit the website you have just created.

No comments:

Post a Comment