tkalfaoglu
Silver Pleskian
When I reboot the server, all PHP sites display an error "service unavailable" and this in the error_log:
[Sat Jul 14 12:34:28.480024 2018] [proxy:error] [pid 3061:tid 140100046333696] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/kalfaoglu.com/php-fpm.sock (*) failed
I have to manually do a
find /var/www/vhosts -name php-fpm.sock -exec chmod 666 {} \;
every time to get it the sites to work again.
How to fix this so that the sock file gets created with the correct access mode?
Thanks, -turgut
[Sat Jul 14 12:34:28.480024 2018] [proxy:error] [pid 3061:tid 140100046333696] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/kalfaoglu.com/php-fpm.sock (*) failed
I have to manually do a
find /var/www/vhosts -name php-fpm.sock -exec chmod 666 {} \;
every time to get it the sites to work again.
How to fix this so that the sock file gets created with the correct access mode?
Thanks, -turgut