This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

[LIVE WEBINAR] Don't fear downtime during a traffic surge! Discover the power of Autoscale on 28th Sept. Register Now →

Turbocharge Your Drupal 7 Website with Redis – An Installation Primer

Updated on July 25, 2017

3 Min Read

Even Drupal, a CMS known for speed, get slow as the size of the website increases beyond a manageable size. This is when the visitors start to notice the lag-ridden performance of the Drupal 7 website.

An important way of ensuring the speed of a Drupal 7 is to use a caching technology that reduces the load on the server. One of the most popular caching methods is Redis. The good news is that Cloudways allows 1-click installation of Redis on your server.

How to Install Redis on Drupal Banner

In this tutorial, I will show you how to install Redis on your Drupal website hosted on Cloudways Platform. The process involves the following steps:

  1. Go to your server
  2. Navigate to Settings & Packages
  3. Install Redis on the server
  4. Ensure Redis is active on the server
  5. Download and install Redis Module on your Drupal website
  6. Edit settings.php
  7. Check whether Redis is working correctly.

Nothing as Easy as Deploying Drupal Apps on Cloud

With Cloudways, you can have your Drupal apps up and running on managed cloud servers in just a few minutes.

Go to the Server

Login to the Cloudways Platform and select the server on which you wish to install Redis.

Cloudways server

Navigate to Settings & Packages > Packages

Next, click the Settings & Packages button in the left panel.

cloudways servers settings and packages

Navigate to the Packages section at the top.

cloudways server packages

Install Redis on the Server

Click the Install button beside the Redis subheading to start the installation process.

Cloudways server install redis

The process is usually over within minutes.

Ensure Redis is Active on the Server

Now click the Manage Services button on the left panel and scroll down to the Redis subheading. Check the status to confirm that the Redis service is active.

cloudways server redis start

At this point, you have successfully installed Redis on your server. The next step is the activation of Redis on your Drupal website. The following steps will take you through the process.

Download and Install Redis Module

The very first thing you need to do on your Drupal 7 website is to download and install the Redis module. Remember to enable the module after installation.

Edit settings.php

After you have installed the module, you need to edit the settings.php file in the Drupal installation. This file is located in the sites > default folder. You could either use the shell access or an FTP software (Filezilla is a good choice) to edit this file. Insert the following code at the end of the file:

/* Redis config
* Please leave the settings below untouched
 $conf['cache_backends'][]            = 'sites/all/modules/redis/';
 $conf['cache_class_cache']           = 'Redis_Cache';
 $conf['cache_class_cache_menu']      = 'Redis_Cache';
 $conf['cache_class_cache_bootstrap'] = 'Redis_Cache';
 $conf['lock_inc'] = 'sites/all/modules/redis/';
 $conf['path_inc'] = 'sites/all/modules/redis/';
 $conf['redis_client_host'] = ‘';
 $conf['redis_client_port'] = ‘6379’;
 $conf['redis_client_password'] = ‘’;

Save and close the file after you are done with it.

Check if Redis is Working

Go to Drupal’s CLI and enter the following command:

redis-cli monitor

Keep the CLI open and carry out several actions on your website. Now check the CLI window and you will notice that a number of lines have been generated. This means that the Redis installation is working perfectly on your website.


As you could see, installing and configuring Redis in incredibly simple, thanks to Cloudways. Even a lay user could carry out the procedure without any issues. I hope that after running through this tutorial, your Drupal 7 website has regained its former speed. If you liked this blog post then, also check out another post on 10 Tips To Speed Up Your Drupal Website


Share your opinion in the comment section. COMMENT NOW

Share This Article

Hamza Zia

Hamza is a Drupal Community Manager at Cloudways - A Managed Drupal Hosting Platform. He loves to write about Drupal and related topics. During his free time, he can be seen obsessing over Football, Cars, Android and Gaming.


Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!


Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour
Unleash The Cloud.
Not Budgets.

For 4 Months +
Up To 30 Free Migrations

Cyber Week

Time Left In Offer
  • 0


  • 0


  • 0


  • 0


40% OFF

On All Plans