Turbocharge Your Drupal 7 Website with Redis – An Installation Primer

by Hamza Zia  June 5, 2017

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.

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:

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:

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.

Conclusion

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

 

Start Creating Web Apps on Managed Cloud Servers Now!

Easy Web App Deployment for Agencies, Developers and E-Commerce Industry

About 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.

Stay Connected:

You Might Also Like...