Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting this error when i restart php

Restarting PHP5 FastCGI Process Manager: php5-fpm failed!

I am now phpless. I did touch the config file but i cant undo it as i loss my connection and i did not back it up

Here is my current /etc/php5/fpm/pool.d/www.conf with all the comment lines removed.

listen = /var/run/php-fastcgi/php-fcgi.socket
user = php-www
group = php-www
pm = dynamic
pm.max_children = 10
pm.start_servers = 5
pm.min_spare_servers = 1
pm.max_spare_servers = 5

chdir = /

Whats wrong with that? and what log file can i look into to find the reason it failed?

share|improve this question
Which distro? Specify a error_log directive in the php-fpm.conf, under [global] section, try again and take a look at this. – quanta Nov 15 '11 at 6:07
I temporarily fixed it by copying/pasting a copy i found on the internet. I'll be away for the rest of today. -edit- debian squeeze – acidzombie24 Nov 15 '11 at 6:12

This happens to me when there's another process running that was spawned from php-fpm. For example, I have a page that runs ImageMagick from command line in order to create thumbnails from images. If I try to restart php-fpm while ImageMagick is still running then it will fail after a timeout of it waiting for the process to finish.

share|improve this answer
Thanks! My php still seems to run and wordpress is working, even after a restart fail. So do I need to something now with killall or can I just leave it be? – Aditya M P Jan 22 '13 at 6:55
Okay, I did service php5-fpm stop and started again and that worked. – Aditya M P Jan 22 '13 at 7:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.