Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:nginx [2013/09/19 11:59]
cyril created
software:nginx [2013/09/19 16:40]
Line 1: Line 1:
-====== Nginx ====== 
- 
-===== Installation and configuration ===== 
- 
-  * install nginx and php with fpm use flag 
-  * create directory for vhost in /var/www, "chgrp nginx" it, and "chmod g+rXs" it (possibly o-rwx as well). 
-  * change "listen = /var/run/php-fpm.socket" and "user = nginx group = nginx" instead of "nobody" in /etc/php/php-fpm-xx/php-fpm.conf 
-  * add server config in /etc/nginx/nginx.conf such as:<code> 
-        server { 
-                listen 80; 
-                server_name domain.fr; 
- 
-                access_log /var/log/nginx/domain.fr.access_log main; 
-                error_log /var/log/nginx/domain.fr.error_log info; 
- 
-                index index.php; 
-                root /var/www/domain.fr; 
- 
-                location ~ \.php$ { 
-                        include /etc/nginx/fastcgi.conf; 
-                        fastcgi_pass unix:/var/run/php-fpm.socket; 
-                } 
-        } 
-  </code> 
-  * start nginx and php-fpm init scripts and add them to rc-update 
- 
  
software/nginx.txt ยท Last modified: 2013/09/19 16:40 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0