All HowTo's Linux Redhat, Fedora and CentOS Linux

Install Memcached for Magento (or any PHP site) on CentOS/Redhat

This article explains how to install and configure memcached for Magento (or any PHP site) on a Redhat or CentOS server.

Install memcached:

yum install memcached php-pecl-memcache -y

Now edit your “/etc/sysconfig/memcached” file to look something like this:

## Accept connections from another server (
#OPTIONS="-l -L"

Finally set it to start on boot:

chkconfig memcached on

And start it now:

service memcached start

Now configure Magento to use memcahced. Edit the file “local.xml” which you will need to search for. Try “locate local.xml”. In that file, find the line that says “</config>” and add the following right ‘before’ that line:
TIP: You may already have these lines in your local.xml file so in that case just edit it to be like this.