Page 1 of 1
PHP-FPM 5.4 - Init.d script is missing
Posted: Wed Sep 25, 2013 10:39 pm
by smonteiro
Hi, everybody.
After updating to version php-fpm-5.4.20-26.el5.art, I noticed that init script is missing.
Re: PHP-FPM 5.4 - Init.d script is missing
Posted: Mon Oct 07, 2013 10:37 am
by scott
[root@c6-64-dev ~]# rpm -qf /etc/init.d/php-fpm
php-fpm-5.4.20-26.el6.art.x86_64
[root@c6-64-dev ~]# /etc/init.d/php-fpm start
Starting php-fpm: [ OK ]
[root@c6-64-dev ~]# ps ax |grep fpm
10788 ? Ss 0:00 php-fpm: master process (/etc/php-fpm.conf)
10789 ? S 0:00 php-fpm: pool www
10790 ? S 0:00 php-fpm: pool www
10791 ? S 0:00 php-fpm: pool www
10792 ? S 0:00 php-fpm: pool www
10793 ? S 0:00 php-fpm: pool www
Looks fine to me
Re: PHP-FPM 5.4 - Init.d script is missing
Posted: Mon Oct 07, 2013 9:32 pm
by smonteiro
Hi, thanks for your response.
But the problem is in the Centos 5.x(php-fpm-5.4.20-26.el5.art) version, not Centos 6.x.
Anyway, i've fixed the problem.
Re: PHP-FPM 5.4 - Init.d script is missing
Posted: Fri Oct 11, 2013 2:31 pm
by aslus maximus
I was just having the same prob with my centOS 5. It wouldn't let me uninstall it with yum either and was spitting out errors about a script or something. I had to remove it with rpm --noscipts. Reinstalled it and more errors. Can't start the service, says unrecognised. Same thing in plesk too. How did you fix it? I've been playing with mine for about an hour and decided to come here and see if anyone else was having issues with it.

Re: PHP-FPM 5.4 - Init.d script is missing
Posted: Fri Oct 11, 2013 2:34 pm
by aslus maximus
Bling!
[root@www ~]# rpm -qf /etc/init.d/php-fpm
error: file /etc/init.d/php-fpm: No such file or directory
Re: PHP-FPM 5.4 - Init.d script is missing
Posted: Fri Oct 11, 2013 11:25 pm
by smonteiro
The init.d script(php-fpm) exists in the RPM, but in a wrong location.
Wrong path: /etc/
Correct: /etc/rc.d/init.d/
So, you should move the file to the correct path:
mv /etc/php-fpm /etc/rc.d/init.d/
And activate the service:
chkconfig php-fpm on
That´s it.
Re: PHP-FPM 5.4 - Init.d script is missing
Posted: Sat Oct 12, 2013 5:56 am
by aslus maximus
Ah ha! It's working now. Cool

Thanks smonteiro. A question. Do I need to run fcgi if I'm using fpm now? Could I uninstall the fcgi module from plesk alltogether or turn off the apache module in plesk if I wanted to?