There was a problem loading the comments.

Enabling Redis for cPanel on a managed server or Premier web hosting plan

Support Portal  »  Knowledgebase  »  Viewing Article

Enabling Redis for cPanel on a managed server or Premier web hosting plan

If you have a managed cPanel server with DreamIT Host or a Premier web hosting plan, we can consider installing Redis for object caching on your service.

Please submit a support ticket to our team, and we will install it on your service.

 

Please note:

If your server has 64 GB of RAM or above, it shouldn't be a problem.

If your server has less than 64 GB of RAM, we recommend enabling object caching for only a select few accounts. (You can enable object caching for a few sites, but we don't recommend enabling it for all users as it can consume your server's memory.)

To enable Redis for an account once it has been installed, please follow these steps:

  1. Log in to the cPanel account

  2. Scroll down to the Advanced header and click on "LiteSpeed Redis Cache Manager"
    fc14801657c3b3cad65119045192facbd0cafe56a8b8d3933a07e215b150026446aef17df30fd573?t=f606a70fad5a7c1478293fe26f559e88|

  3. On the new page, click on Enable Redis Service.
    34f47cc7b9145523afd938b3bf173018e66d53b6f7c7f51fcea3b78b204ced493144bd00aff7c36d?t=d5cfe27f3ebd9dcf886c6d55972e03de
    Once Redis has been enabled, you should see the message "Enabled Redis successful".
    4d390ef5f4d9889c72571e19a663e6c9cba8605dee37f6f3fe74ad569034b2ad09e364e55f413daa?t=24b1023220e9bfdefe91cdff19f08ddd

  4. If you are on ea-PHP, you'll need to switch it to the alt-PHP via MultiPHP Manager. Note: if you are already on alt-PHP, you can skip this step.
    2bf558c1b39ed15fec9927a1905b363840bda0e4821091996a1e09965f32c45b8764144d978c9d2b?t=ae16ad63cf2349a236298c18181d53fe

    4a. Scroll to the bottom of the page and select the checkbox for your domain. On the right side, you will see a PHP Version drop-down menu. Select the appropriate alt-PHP version, then click the Apply button.
    707050f6547c89e70499ab052f1bfcbb44723eddbdd5371d6aae76dce4d6b59000b74924cb527d90?t=7c4fae0393b26567dd2a1d63982b289a

  5. Once they are on the alt-php version, navigate to Select PHP version
    4e5f454b81d0b0dd2a61c10d70bfdb843d799d22c61994d0168a1de38ff39fe273a1393b3696892d?t=dcd8368160a1737990f6057aeca00dd6

  6. Ensure you select the PHP version from the list of Current PHP versions that matches the PHP version you are using for the website.
    3c173f6ce855c29525830e257a6c3639ded992b9cacdb83a97c3816d3e72ba75c355acdacb9a5757?t=a59a52e2652f0e01451d9bca274d4a27
  7. You should now see a button "Use PHP Selector"
    c479a3a4c57befa99d8fb695b2b72de149c97602e10c999255726dcb148c37b0cc36da258f7b0f2f?t=f9dd5ff7ef917236e7415f9435762298

  8. Click the button, and you should see the Handled By log change to cPanel to Cloudlinux.
    7865676e312de851cf863c2f459046476f41b2a858413a9d63559238020c5ab122aea97e28d068f0?t=b1a1e9b69a1b15eba8dc36963c26fb69

  9. Next, head to the extensions and enable the Redis option.
    37bf77892498a5ffb1037656568d70c6125e388340b06ed893d2ed59dee4416f9e1207f441895cd2?t=da98aedcc5168e9806e23b646b6a8d55

  10. Next, log in to the WordPress backend and ensure that the site has LiteSpeed cache installed.

  11. Head to the LiteSpeed cache plugin > Cache > Object.
    aa365ff0e56e76a73bc75d608490882808361e9bc4d07c8a04e0b8cf6d63342d66e4b1f968cc9798?t=3b9867cf7ecfdf6e6912a8aab0a4350c

  12. Then, under Object Cache, change to On and set Method to Redis.
    c1d9851184918f87e5f3763fff96b098c51747a6c93cf41e7e1eba55733cce38cfdaf2c690ecae64?t=e6c98755136c09925712ba98f716c02b

  13. Enter the following in Host: /tmp/redis.sock
    9058ee9960a7a53edf5b54a5030809e9159468b7ec616ed3b45f656fc56570a94f4ae155175b9a0a?t=aac4f25e63ee8b3e42f1133a9ec6d37e

  14. Change the value for the Port to 0.
    6d1f652ca6f09933e257ecbf49a73d19ac4b5bfef141286ad9774d066fbe83e09dc46dde466209fb?t=ebcafb596c733931a77ab9ac68015597

  15. Save the changes.

  16. If the connection test passes, it confirms that the Redis object cache has been set up correctly.
    798e2effcac38e50a9bba5a96fd3b437d0b0a874e20cb6cedcd324b69d03ca98af7697b43428be45?t=446cb2b144c5acc20db845f906625e9e
Did you find this article useful?