Installing and configuring Memcache - gd-99/symbiogd GitHub Wiki

sudo apt-get install php5-memcache memcached php-pear netcat build-essential

memcached it is part of program who make socket and cache memory.

sudo pecl install memcache

part of php module who add php function for communicate with memcached program

Once you have completed the installation of memcache with PECL, add memcached to memcache.ini:

echo "extension=memcache.so" | sudo tee /etc/php5/conf.d/memcache.ini

And for php fpm server

echo "extension=memcache.so" | sudo tee /etc/php5/fpm/conf.d/memcache.ini

After Memcache is downloaded, you can check that it has been installed by searching for it:

ps aux | grep memcache

Additionally, you can see the memcache stats by typing:

echo "stats settings" | nc localhost 11211

More info about Memcached : http://memcached.org/