Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

[www]
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

1 Answer 1

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 menon Jan 22 '13 at 6:55
    
Okay, I did service php5-fpm stop and started again and that worked. –  aditya menon Jan 22 '13 at 7:06

Your Answer

 
discard

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.