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.
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.
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.
On ubuntu I had to do:
sudo apt-get install php5-memcache
Note that there is no 'd' in the end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.