How to install Memcache for Drupal

If you host a high traffic website, you probably have already wondered how to improve performances and reduce the load of your web server. To do this, you can start to optimize Apache and MySQL parameters, but at the end, you will always need powerful caching systems. In my opinion, the two important ones for a PHP website are APC (to cache PHP opcode) and Memcache (database oriented). Of course, you can also work with Redis, Varnish, and so on. This tutorial will help you to set up Memcache on a Apache/MySQL Debian 6 server, to use it with Drupal. It may work without troubles on Ubuntu server too. Method On your web server, run the following commands to install everything: apt-get update apt-get install memcached libmemcached-tools apt-get install php5-dev php-pear make apt-get install php5-memcached pecl install memcache-3.0. ...

Display Memcached stats like APC stats

Everybody knows this "cool" APC stats page where you can find all useful information about this powerful caching system. When you first install Memcached, you can be a little bit lost without such information, but the good thing is that a very nice guy (Harun Yayli) has written the same page for Memcache ! You can download this nice file here. ...