HELP! php-fpm no longer working after update (nginx/Ubuntu)

After updating my Ubuntu install to 14.10 (from 14.04) and EasyEngine to 3.0 my sites are coming up with a 'Bad Gateway error 502" whenever accessing php files (like my Wordpress install).

I tried several of the suggested fixes, like removing and reinstalling php and php-fpm, as well as reinstalling EasyEngine. Nothing has fixed this so far.

When checking via ps ax | grep php5-fpm there is no process running, and php-fpm is clearly not starting (or remaining running) - this seems to be the main error here.

Can someone please help me out here?

Best as I can ascertain, this is a bug in Ubuntu 14, related to the php-fpm installation. It won’t restart after an update. Has anyone come across this?

@ZinkDifferent

you can check /var/log/syslog and /var/log/php5/fpm.log for the reason behind this.

1 Like

This is what I am seeing:

Apr 2 22:35:55 thn kernel: [1165466.442746] init: php5-fpm main process (25902) terminated with status 78 Apr 2 22:35:55 thn kernel: [1165466.442763] init: php5-fpm respawning too fast, stopped

… and this from /var/log/php5/fpm.log:

[02-Apr-2015 22:35:54] ERROR: FPM initialization failed [02-Apr-2015 22:35:54] ALERT: [pool www] pm.min_spare_servers(10) and pm.max_spare_servers(30) cannot be greater than pm.max_children(20) [02-Apr-2015 22:35:54] ERROR: failed to post process the configuration [02-Apr-2015 22:35:54] ERROR: FPM initialization failed [02-Apr-2015 22:35:55] ALERT: [pool www] pm.min_spare_servers(10) and pm.max_spare_servers(30) cannot be greater than pm.max_children(20) [02-Apr-2015 22:35:55] ERROR: failed to post process the configuration [02-Apr-2015 22:35:55] ERROR: FPM initialization failed [02-Apr-2015 22:35:55] ALERT: [pool www] pm.min_spare_servers(10) and pm.max_spare_servers(30) cannot be greater than pm.max_children(20) [02-Apr-2015 22:35:55] ERROR: failed to post process the configuration

Thank you, @harshadyeola harshadyeola, this helped me at least get php-fpm operational.

Now, I can take a look at an info.php file that I installed, but so far, the Wordpress installations in those same locations (installed with ee, initially) still only show blank, white, empty pages.

Progress, somehow. I feel we are very close.

What I’m seeing now in the specific www log is that it seems facts doesn’t want to connect:

failed (111: Connection refused) while connecting to upstream, client: 220.181.108.139, server: thehornetsnestmovie.com, request: “GET / HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “www.thehornetsnestmovie.com”

Hi @ZinkDifferent

Please verify that argument to fastcgi_pass in location ~ \.php$ block is same value as the value listen variable in /etc/php5/fpm/pool.d/www.conf

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: