How to enable Redis on Magento 1.9.3.x

This procedure is for [aMiSTACX]. As Redis is already pre-installed and configured, all that is required for Magento 1.9.3.7 & 1.9.3.8 is to enable it.

These instructions are not supposed to superseded Magento’s official instructions, but we will outline a procedure that is simple to follow and is known to work with our provisioned stacks.

To enable Magento to use Redis, perform the following tasks:

Step 1. Enable the Cm_RedisSession module.

Open /var/www/magento/app/etc/modules/Cm_RedisSession.xml in a text editor.

Change the value of active to true.

Save your changes to Cm_RedisSession.xml and exit the text editor.

Step 2. Modify /var/www/magento/app/etc/local.xml

For configuration information, see the sample provided with Magento in /var/www/magento/app/etc/local.xml.additional

Important! Please make a backup of your local.xml file BEFORE you modify it!

You will need to copy and paste both Redis sections into the local.xml file as shown in this image.

Notice the highlighted session_save replaces the default session_save. Make sure the old line is removed.

[Click Image for Full size.]

Save file after edit.

Step 3. Flush the Magento cache from command line:

cd /var/www/magento

sudo rm -rf var/cache

Good to go!

 

Magento Official Ref: Using Redis With Magento Community Edition (CE)

Leave a comment