2.13.5.7. Configuring Redis in Drupal
For more information on Redis, see here.
- Openup this page and at the bottom copy the link to the archive with the version of the Redis module corresponding to the installed version of Drupal.
- Open the site admin panel.
- Go to section "Extensions" ("Extend").
- Clickon "Install new module" ("Install new module").
- Paste the copied link into the box "Install with URL-addresses" ("Install from a URL").
- Clickon "Install" ("Install").
- Wait for the installation to complete.
- In chapter "Extensions" ("Extend") find in the list "Redis", check the box next to it and at the bottom of the page click "Install" ("Install").
- At the end of the file
sites/default/settings.php
add code like this:$settings['redis.connection']['host'] = '/home/example/.system/redis.sock'; $settings['redis.connection']['port'] = NULL; $settings['cache']['default'] = 'cache.backend.redis'; $settings['redis.connection']['base'] = 8;
In the line with the parameter
host
insteadofexample
indicate hosting account namein which the site is hosted.