I had a similar error after php update. PHP fixed a security bug where o
had rw
permission to the socket file.
- Open
/etc/php5/fpm/pool.d/www.conf
or/etc/php/7.0/fpm/pool.d/www.conf
, depending on your version. -
Uncomment all permission lines, like:
listen.owner = www-data listen.group = www-data listen.mode = 0660
-
Restart fpm –
sudo service php5-fpm restart
orsudo service php7.0-fpm restart
Note: if your webserver runs as user other than www-data, you will need to update the www.conf
file accordingly