Good day.

Memcache is connected. Works. And how to connect memcached? Tell me, please, an example. There it is necessary to register in the Apache or in php.ini? I write that it is not:

Fatal error: Class 'Memcached' not found

Thank.

  • one
    Have you installed it? apt-get install php5-memcached Note the d at the end. As a rule, the memcached extension is installed correctly and you do not need to register anything else. Everything is added automatically :! [Alt text] [1] [1]: i.imgur.com/zku9fWx.png - romeo
  • one
    Install the Memcached extension, a php5-memcached ubuntu package. Your captain O. Taking this opportunity - there is not much difference in them. - etki
  • @romeo, you are right - there are artists, and there are painters ... - Gedweb
  • one
    php-pecl-memcached - Gedweb
  • I read that memcached is faster than memcache. I wanted to look. )) Thank you very much. - Rakzin Roman

1 answer 1

I leave a small installation manual memcache because the topic seems relevant:

  1. Update the repository:

    apt-get update

  2. Install the memcached daemon and module:

    apt-get install memcached php5-memcached

  3. Check the daemon launch:

    netstat -tap | grep memcached

    tcp 0 0 localhost: 11211 : LISTEN 21448 / memcached

  4. Restart webserver

For apache2 :

service apache2 restart

For php-fpm :

service php5-fpm restart