Hi, everybody.
After updating to version php-fpm-5.4.20-26.el5.art, I noticed that init script is missing.
PHP-FPM 5.4 - Init.d script is missing
-
- 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
[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
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
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.
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.
- aslus maximus
- Forum User
- Posts: 59
- Joined: Tue Mar 05, 2013 1:10 pm
- Location: here
Re: PHP-FPM 5.4 - Init.d script is missing
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.
- aslus maximus
- Forum User
- Posts: 59
- Joined: Tue Mar 05, 2013 1:10 pm
- Location: here
Re: PHP-FPM 5.4 - Init.d script is missing
Bling!
[root@www ~]# rpm -qf /etc/init.d/php-fpm
error: file /etc/init.d/php-fpm: No such file or directory
[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
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.
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.
- aslus maximus
- Forum User
- Posts: 59
- Joined: Tue Mar 05, 2013 1:10 pm
- Location: here
Re: PHP-FPM 5.4 - Init.d script is missing
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?