Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I cannot get memcached installed for the life of me on CentOS 5.5

yum install memcached says package doesn't exist

I have tried installing from source, as well as yum. Apparently memcached is running according to ps auxw, and I have the extension loaded in my php.ini file, but PHP is saying it's not installed... It's not showing up under phpinfo

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Memcached and the Memcached PHP extension are not part of the standard CentOS repository.

You need to install something like the RPMForge repository to get the appropriate packages.

Instructions for installing RPMForge are here.

After that, the packages you're looking for are memcached and php-pecl-memcached, i.e.:

yum install memcached php-pecl-memcached

You may need to restart your webserver after installing this for the PHP extension to become active.

I'm assuming that you see the memcached process running because you installed from source and started it. You might want to "make uninstall" from your source tree before you install proper packages.

share|improve this answer
    
Thank you for the respsonse. –  Andrew Fashion Dec 2 '10 at 1:03
    
Opinion: I recommend EPEL instead of RPMForge. fedoraproject.org/wiki/EPEL –  troyengel Dec 2 '10 at 1:03
    
I performed the make uninstall, and removed it, and went through the RPMForge steps and it said RPMforge was already installed. –  Andrew Fashion Dec 2 '10 at 1:04
    
Ok - so if you run "rpm -qa | grep memcache" what results do you get? –  Rafiq Maniar Dec 2 '10 at 1:11
    
php-pecl-memcache-2.2.3-1.el5_2 –  Andrew Fashion Dec 2 '10 at 1:13
show 12 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.