Upgrade to Ubuntu16.04 LTS from 14.04 LTS killed my php
Reinis Rozitis
r at roze.lv
Sat Apr 22 18:11:01 UTC 2017
> My question is what should the /var/run/php/php7.0-fpm.sock have as
> permission?
It should have rw (read/write) access for whatever user/group nginx is running under (by default nobody).
Depending on which service (nginx or php-fpm) is running under correct user either change the nginx configuration/user to match the sock file ownership ( http://nginx.org/en/docs/ngx_core_module.html#user ) or check your php-fpm.conf for:
listen = in your case should be /var/run/php/php7.0-fpm.sock
and adjust accordingly:
listen.mode = 0660
listen.owner = ...
rr
More information about the nginx
mailing list