Centos php-fpm unrecognized service

IceD asked:

I am trying to run php-fpm on my Centos VPS but when I get to php-fpm part I get an error.

I downloaded packages from these links:

rpm --import https://fedoraproject.org/static/0608B895.txt
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Then after all the other services went fine I tried this command:

yum install php php-fpm mod_fastcgi
Loaded plugins: priorities, refresh-packagekit
1360 packages excluded due to repository priority protections
Setting up Install Process
Package php-5.3.3-14.el6_3.i686 already installed and latest version
No package php-fpm available.
Package mod_fastcgi-2.4.6-2.el6.rf.i686 already installed and latest version
Nothing to do

Enable php-fpm

chkconfig --levels 235 php-fpm on
error reading information on service php-fpm: No such file or directory

For some reason I have package php-5.3.3-14.el6_3.i686` already installed and latest version but I should be having

php-fpm-5.4.11-1.el6.remi.i686

I tried downloading package from this link but when repeating the process I got the same results. So why can’t I run the php-fpm services?

P.S.
I tried even with

services php5-fpm start

No luck.

My answer:


Install the remi-release RPM from the remi repository.

You must also edit the /etc/yum.repos.d/remi.repo that it installs, in order to enable the repo. Find the [remi] section and change enabled=0 to enabled=1.

Then you can use the packages the repository provides.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.