Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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. – 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

Your Answer


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.