Reputation: 56
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.
Upvotes: 4
Views: 11837
Reputation: 9915
On ubuntu I had to do:
sudo apt-get install php5-memcache
Note that there is no 'd' in the end
Upvotes: 0
Reputation: 121
Make sure you have extension = memcached.so in your php.ini.
Add this text as 'extension = memcached.so
' at the end of file.
And Restart Apache.
Upvotes: 0
Reputation: 131901
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
Don't forget to restart the server.
Upvotes: 4