PHP-FPM 5.4 - Init.d script is missing

Support/Development for PHP
smonteiro
New Forum User
New Forum User
Posts: 3
Joined: Wed Sep 25, 2013 10:29 pm
Location: Brazil

PHP-FPM 5.4 - Init.d script is missing

Unread post by smonteiro »

Hi, everybody.

After updating to version php-fpm-5.4.20-26.el5.art, I noticed that init script is missing.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP-FPM 5.4 - Init.d script is missing

Unread post 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
smonteiro
New Forum User
New Forum User
Posts: 3
Joined: Wed Sep 25, 2013 10:29 pm
Location: Brazil

Re: PHP-FPM 5.4 - Init.d script is missing

Unread post 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.
User avatar
aslus maximus
Forum User
Forum User
Posts: 59
Joined: Tue Mar 05, 2013 1:10 pm
Location: here

Re: PHP-FPM 5.4 - Init.d script is missing

Unread post 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. :|
User avatar
aslus maximus
Forum User
Forum User
Posts: 59
Joined: Tue Mar 05, 2013 1:10 pm
Location: here

Re: PHP-FPM 5.4 - Init.d script is missing

Unread post 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
smonteiro
New Forum User
New Forum User
Posts: 3
Joined: Wed Sep 25, 2013 10:29 pm
Location: Brazil

Re: PHP-FPM 5.4 - Init.d script is missing

Unread post 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.
User avatar
aslus maximus
Forum User
Forum User
Posts: 59
Joined: Tue Mar 05, 2013 1:10 pm
Location: here

Re: PHP-FPM 5.4 - Init.d script is missing

Unread post by aslus maximus »

Ah ha! It's working now. Cool 8) 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?
Post Reply