I would like to setup memcached on my server so that I can learn how to use it. It is my understanding that the basic requirements to use it with PHP are:
- PHP
- memcached
- PHP PECL memcached library
After successfully installing and running php53
via yum
, I have tried running
yum install php-pecl-memcached
The following is a portion of the output from yum
when trying to install php-pecl-memcached
:
--> Processing Conflict: php53-common conflicts php-common
I need to stick with php 5.3
so I cannot fall back to the yum php
package (php 5.1).
It seems that there was a IUS repo with a package named php53u
, according to this site, but I can't use that repo.
I would also like to avoid installing from source.
Is there a solution out there for installing the PECL memcached extension on CentOS 5.6, with PHP 5.3?
Output of yum repolist
:
[~]$ yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.wiredtree.com
* epel: mirror.steadfast.net
* extras: mirror.wiredtree.com
* updates: mirrors.serveraxis.net
repo id repo name status
base CentOS-5 - Base 3,566
chl CHL Packages for Enterprise Linux 5 - x86_64 8
chl-source CHL Packages for Enterprise Linux 5 - x86_64 - Source 0
epel Extra Packages for Enterprise Linux 5 - x86_64 6,720
extras CentOS-5 - Extras 235
updates CentOS-5 - Updates 225
repolist: 10,754
Output of rpm -qa | grep php
[~]$ rpm -qa | grep php
php53-cli-5.3.3-1.el5_6.1
php53-common-5.3.3-1.el5_6.1
php53-5.3.3-1.el5_6.1
Best Answer
Install php53u and then install php53u-pecl-memcache. That worked for me.