nano /etc/php5/fpm/pool.d/www.conf
;listen = 127.0.0.1:9000 listen = /tmp/php5-fpm.sock
listen.owner = www-data //same as nginx user listen.group = www-data listen.mode = 0666
nano /etc/nginx/sites-available/default
location ~ \.php$ { fastcgi_pass unix:/tmp/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; include fastcgi_params; }
Comment feed