Tag Archives: php-fpm + proxy:fcgi

Error when starting php-fpm on a virtualmin centos

Last day ran into an issue in which the php-fpm service was facing an issue and httpd service was failing to start.

On checking the logs, could see this :

Date [proxy:error] [pid] 111  connection refused:FCGI:attempt to connect to 127.0.0.1:8000 (*) failed

Date [proxy_fcgi:error][pid] client ip : failed to make connection to backend:

Could see that proxy:fcgi was set to run on the same port in which php-fpm was configured to listen on.

Edit the file – /etc/php-fpm.d/www.conf and find this line :

listen = 127.0.0.1:8000

change the listening port to something different than what proxy_fcgi is using.

Restart the php-fpm service.