ispconfig_setup icon indicating copy to clipboard operation
ispconfig_setup copied to clipboard

PHP-FPM Socket permission denied

Open Pe46dro opened this issue 9 years ago • 3 comments

I installed ISP Config using your script, i installed NGINX but when i visit a website i have a 502 Bad Gateway on error.log i found this error

2016/02/14 20:51:13 [crit] 12800#0: *53 connect() to unix:/var/lib/php5-fpm/web1.sock failed (13: Permission denied) while connecting to upstream, client: 80.117.55.180, server: domain.tld, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web1.sock:", host: "domain.tld"

I already checked /var/lib/php5-fpm/web1.sock permission but it seems correct

srw-rw----  1 web1      client0      0 Feb 14 21:16 web1.sock

If I turn off "Use Socket For PHP-FPM" all work succes...

I made a post here

Pe46dro avatar Feb 14 '16 20:02 Pe46dro

Which distro?

servisys avatar Feb 19 '16 07:02 servisys

Debian 8 Jessie

Pe46dro avatar Feb 19 '16 07:02 Pe46dro

Same on Debian 9 when install php7 and 5 together and switch inside ispconfig from 7 to 5 and back.

seiya74656 avatar Aug 08 '18 14:08 seiya74656