"Fatal error: Class 'Memcached' not found" when trying to install Memcache in Ubuntu

linux, memcached, php, ubuntu, xampp

Solution

You are only talking about the memcache-daemon, but to access it from PHP you also need the PHP-extension

sudo apt-get install php5-memcached

- http://packages.ubuntu.com/precise/php5-memcached

- http://php.net/memcached

Don't forget to restart the server.

Problem

On Ubuntu, I am getting an error in memcache. Fatal error: Class 'Memcached' not found I have xampp and I have installed memcached and memcach. Actually I want memcache and I don't know what is the problem. When I run through terminal, I get this: ``` /etc/init.d/memcached status * memcached is running ``` Also ``` telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ``` I'm using Ubuntu desktop version 32bit. Not getting where is the problem. Please be specific.

Original source