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

When trying to use memcached in my php script, i get class not found. I am running LAMP on Ubuntu 9.01 and have so far taken the following few steps:

apt-get install memcached
pecl install Memcache
apache2ctl restart

I see the memcache extension when viewing phpinfo, but no memcached?!

Is there anything else that i need to do to be able to use memcached in my script? Thanks in advance

share|improve this question

Search for "memcache class not found" at Google yields Memcache Class Not Found thread with troubleshooting instructions:

Run php -i | grep memcache to ensure that PHP was compiled with the --enable-memcache option.

share|improve this answer
apt-get install php5-memcache

another 3 minute hold... la la la la la la.... two robot checks... la la la la..... and another robot check.. whee....

share|improve this answer

Your Answer


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