nginx error connect to php5-fpm.sock failed (13: Permission denied)

PHP fixed a security bug where o had rw permission to the socket file. Open /etc/php5/fpm/pool.d/www.conf Uncomment all permission lines, like: listen.owner = www-data = www-data listen.mode = 0660 Restart fpm – sudo service php5-fpm restart Note: if your webserver runs as as user other than www-data, you will need to update the www.conf […]