Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm running PHP-FPM and Nginx, occasionally, for whatever reason, I have to reboot the server. Once the server is running again, the nginx service automatically starts, however, PHP-FPM does not. This can be seen when I run the command sudo /etc/init.d/php-fpm restart immediately after a reboot and get the result:

$ sudo /etc/init.d/php-fpm restart
Stopping php-fpm:                                          [FAILED]
Starting php-fpm:                                          [  OK  ]

Is this expected behaviour? What is the best way to make PHP-FPM automatically start? Is there a config option anywhere, or do I have to add the command to one of the Linux startup scripts?


share|improve this question
Which linux distribution are you using? How did you installed php-fpm? From a package or from sources? – Tonin Dec 20 '12 at 16:20
It's running on an Amazon EC2 Linux instance, PHP-FPM was installed using yum install -y php-fpm – SteveEdson Dec 20 '12 at 16:25

1 Answer 1

up vote 11 down vote accepted

So set it up to start at boot:

chkconfig php-fpm on
share|improve this answer
As simple as that, brilliant! Cheers – SteveEdson Dec 20 '12 at 16:27

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.