Submit a Ticket
Support Center » Knowledgebase » Configure Redis for Drupal Application

Configure Redis for Drupal Application

Before you proceed please follow the steps on this TUTORIAL in order to enable REDIS via your Cpanel. After that follow the steps below to configure REDIS for your Drupal application:


1. Login to your DRUPAL admin panel.



2. Navigate trough the following steps - Drupal Admin area >> Extend >> + Install new module >> Install from a URL >> https://www.drupal.org/project/redis >> Install.
  • For installation URL please choose: https://ftp.drupal.org/files/projects/redis-8.x-1.0-rc2.tar.gz (or a newer version for Redis if available)




3. Click Enable newly added modules and enable Redis.




4. Edit Drupal settings file at ./sites/default/settings.php and add these lines at the bottom of the file:

$conf['redis_client_interface'] = 'Predis';
$conf['redis_client_host'] = 'hostname';
$conf['redis_client_port'] = port;
$conf['redis_client_password'] = 'password';
$conf['lock_inc'] = 'sites/all/modules/contrib/redis/redis.lock.inc';
$conf['cache_backends'][] = 'sites/all/modules/contrib/redis/redis.autoload.inc';
$conf['cache_default_class'] = 'Redis_Cache';

PS: The variables you should edit: hostname; port; password are found on your Cpanel > Redis information.



5. Clear your Drupal cache: Admin >> Configuration >> Performance >> Clear all caches and then visit the status report page: Admin >> Reports >> Status report.

If everything is correctly set the line next to REDIS should show -- Connected


 This answer was helpful  This answer was not helpful
 Back