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

On Ubuntu, I get an error message in memcache.

Fatal error: Class 'Memcached' not found

I have xampp and I installed memcached and memcach. Actually I want memcache, and I don't know what the problem is. When I start the terminal, I get the following:

/etc/init.d/memcached status * memcached is running 

Besides

 telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 

I am using the 32bit version for Ubuntu desktops. Do not get where the problem is. Please be specific.

+4
source share
3 answers

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

 sudo apt-get install php5-memcached 

Do not forget to restart the server.

+4
source

Make sure you have extension = memcached.so in php.ini. Add this text as ' extension = memcached.so ' to the end of the file.

And restart Apache.

0
source

On ubuntu, I had to do:

  sudo apt-get install php5-memcache 

Note that there is no 'd' at the end

0
source

Source: https://habr.com/ru/post/1437139/


All Articles