0
Fixed
Permission denied php-fpm socket
Because of a recent PHP update I started getting error in nginx saying it couldn't connect to the upstream PHP-FPM socket.
See http://stackoverflow.com/questions/23443398/nginx-... and https://bugs.php.net/bug.php?id=67060 for details.
The fix for this is to add the following to each FPM socket config:
listen.owner = www-data
listen.group = www-data
So for example:
[websitename-php-fcgi-0]
user = www-data
group = www-data
listen.owner = www-data
listen.group = www-data
listen = /var/run/php-fcgi-websitename-php-fcgi-0.sock
.....
Would you be able to include that config as part of the Ajenti generated config so that it's compatible with the latest PHP security settings.
Thanks.
See http://stackoverflow.com/questions/23443398/nginx-... and https://bugs.php.net/bug.php?id=67060 for details.
The fix for this is to add the following to each FPM socket config:
listen.owner = www-data
listen.group = www-data
So for example:
[websitename-php-fcgi-0]
user = www-data
group = www-data
listen.owner = www-data
listen.group = www-data
listen = /var/run/php-fcgi-websitename-php-fcgi-0.sock
.....
Would you be able to include that config as part of the Ajenti generated config so that it's compatible with the latest PHP security settings.
Thanks.
Customer support service by UserEcho
listen = /var/run/php-fcgi-websitename-php-fcgi-0.sock
to
listen = 127.0.0.1:9000;
but unfortunately ajenti rewrites my changes when restarts