Error 503 when enabling php-fpm

I am trying to switch the PHP execution mode to from “FCGId (run as virtual server owner)” to “FPM (run as virtual server owner)”. When I do, the website does not load (throwing a 503 error). This is what I find in the virtual host log file:

[proxy:error] [pid 8783] AH00940: FCGI: disabled connection for (localhost) [proxy:error] [pid 8776] (13)Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /var/php-fpm/14492690422562.sock (localhost) failed [proxy:error] [pid 8776] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 60s [proxy_fcgi:error] [pid 8776] [client*************:*****] AH01079: failed to make connection to backend: httpd-UDS
I am running CentOS Linux 7.3.1611 and PHP 7.1.2. I also have Varnish 4.0.4 running upfront of Apache 2.4.6 with SELinux disabled. Webmin 1.831 and Virtualmin 5.06.

Any idea on what the issue may be? Or where to look?


AFAIK you have to wait for the fix. FPM is not ready to run on every environment in this release.

I have absolutely same issue

Hello cellulosa,

On virtualmin server template try to make it use port instead of socket.
And create a virtual server and try.

May be issue with ownership of socket file

Check your permissions on /var/php-fpm, mine were root:root, but /var/php was www-data:www-data, changed it… worked.

1 Like