Setting up memcached with Drupal 7 on Centos 6

Firstly get access to RPMForge repositories. Next install memcached:

Check memcache stats:

Configure memcache:

Configuration details for memcache can be found here

Install the PECL memcached extension for PHP

Install the memcache drupal module and configure the website via settings.php

You don’t need to enable the module unless you want a stats UI.

Edit your site’s settings.php, adding something like the following:

Truncate the cache table, clear the cache and check that the cache table stays empty when you load some pages. Check the memcache stats and see that data is going into the cache.

Hopefully it’s working now!


Drupal Memcache module –

Configuring Memcache from the memcache wiki –


2 thoughts on “Setting up memcached with Drupal 7 on Centos 6

  1. Richard

    Thank you for the great post! This is much better than the existing docs and actually worked. I am running CentOS 6.5 on Drupal 7 and got a WSOD using your settings.php changes though.


Leave a Reply

Your email address will not be published. Required fields are marked *