Configuring Redis or Memcached socket with LSCache for WordPress Print

  • 2

This article assumes you have already installed the LiteSpeed Cache (LSCache) plugin for WordPress. If you have not yet installed and enabled LiteSpeed WordPress cache plugin for your WordPress site please refer to our KB article: How to install and enable LiteSpeed Cache plugin for WordPress

All Hawk Host shared, reseller, and semi-dedicated plans provide support for Redis and Memcached. Instead of using an IP/port for these services we provide a socket you can use to connect to either application. This article will describe how to configure your LiteSpeed WordPress cache plugin to use a Redis or Memcached socket:

  1. Login to your cPanel account and use the search to access the "Server Application Manager" interface:



  2. From the Server Application Manager interface click "Enable" to spin up your Redis or Memcached instance:



  3. It will take approximately 5 minutes for the instance to start. While you wait for your Redis or Memcached instance to start, use the cPanel search for the "Select PHP Version" interface to ensure we have the right PHP extensions enabled:



  4. From the "Select PHP Version" interface click the "Extensions" tab:



  5. From the Extensions tab make sure you have enabled either the Redis or Memcached PHP extension, whichever you intend on using for your LSCache setup:



  6. Use cPanel search to go back to the "Server Application Manager" interface. You should now see a Socket created with a path provided:



  7. Now that everything is completed in cPanel you will need to login to your websites WordPress admin dashboard. From the WordPress admin dashboard use the left side navigation menu and click the "LiteSpeed Cache" plugin:



  8. From the LiteSpeed Cache plugin dashboard click the "Cache" menu from the left side navigation:



  9. From the LiteSpeed Cache Settings interface click the "[6] Object" tab:



  10. Change the "Object Cache" toggle to "ON":



  11. Select your desired cache method, either Memcached or Redis.

  12. In the "Host" field enter the Socket path from the Server Application Manager in cPanel from step 6.

  13. Change the "Port" field to 0.

  14. All other settings can be left as default unless you have a reason to change them. Verify your entries and click "Save Changes" to complete the process:

  15. If your configuration is correct you should see a "Connection Test: Passed" under the Status display:


Hjalp dette svar dig?

« Tilbage

Ready to get started? Build your site from
$2.24/mo
GET STARTED NOW