LiteSpeed Cache stores ready-made copies of your pages. Redis stores frequently used database results. Together, they can help WordPress load pages and process requests faster.
This guide shows you how to install LiteSpeed Cache, connect it to Redis through DirectAdmin, and set up the LiteSpeed crawler.
Important: This guide is only for users on LiteSpeed web hosting servers. If you want to move your website to our LiteSpeed servers, read A guide to selecting your web hosting server.
Before you start
You need access to both your WordPress dashboard and DirectAdmin. Redis is not included with every hosting plan. If you do not see Redis in DirectAdmin, your plan may not support it.
Important: Disable any other page-cache or Redis plugins before you continue. Using two cache plugins at the same time can cause errors or show old content.
The Advanced preset changes several optimization settings. Test your website after you apply it, especially menus, forms, and other interactive parts. Some features in this preset also require a QUIC.cloud connection.
Install and configure LiteSpeed Cache
Step 1: Install LiteSpeed Cache
Log in to your WordPress dashboard. Go to Plugins and click Add New Plugin. Search for LiteSpeed Cache, then install and activate the plugin.
Make sure all other cache and Redis plugins are inactive before you move on.
Step 2: Open the presets
In the WordPress menu, go to LiteSpeed Cache and click Presets.
Step 3: Apply the Advanced preset
Find Advanced (Recommended) and click Apply Preset. Confirm the change if WordPress asks you to do so.
The good news? LiteSpeed Cache saves a copy of your old settings before it applies the preset. You can restore that copy from the preset history if the new settings cause a problem.
Turn on Redis object caching
Step 4: Open the cache settings
Go to LiteSpeed Cache and click Cache.
Step 5: Open the Object tab
At the top of the cache settings, click Object.
Step 6: Select Redis
Set Object Cache to ON. Under Method, select Redis. The connection test may still show Failed. That is normal until you enter the correct Redis socket details.
Step 7: Open Redis in DirectAdmin
To open DirectAdmin from Site.eu, go to Dashboard, select your plan, and open Web hosting. Then click Log in automatically.
In DirectAdmin, search for Redis or open it from the Advanced Features section.
Step 8: Enable Redis
Click Enable. DirectAdmin will start Redis for your hosting account.
Step 9: Copy the Redis socket path
Copy the full value under Path to redis socket file. Your path is unique to your account. Do not copy the example path from the screenshot.
Step 10: Enter the socket path in LiteSpeed Cache
Return to LiteSpeed Cache > Cache > Object in WordPress. Paste the Redis socket path into the Host field.
Step 11: Set the port to zero
Enter 0 in the Port field. A socket is a direct local connection, so it does not use the normal Redis port.
Leave the other settings at their default values unless you know that your setup needs something different. Then click Save Changes.
Step 12: Check the connection
Look at the status box. You should see Redis Extension: Enabled and Connection Test: Passed.
When I check this setup, I always wait for Passed before changing any crawler settings. It is the quickest way to confirm that WordPress can reach Redis.
Set up the LiteSpeed crawler
The crawler visits pages from your sitemap and prepares cached copies. Think of it as opening each page before a visitor arrives. This can improve the first visit to a page, but it also uses server resources.
Step 13: Open the crawler settings
In the WordPress menu, go to LiteSpeed Cache and click Crawler. Then open the Settings tab.
Step 14: Add your sitemap
Paste the full address of your sitemap into Custom Sitemap. Depending on your setup, this may look like one of these examples:
- https://yourdomain.eu/wp-sitemap.xml
- https://yourdomain.eu/sitemap.xml
- https://yourdomain.eu/sitemap_index.xml
Use the sitemap address that works on your website. Open it in a new browser tab first to make sure it loads.
Step 15: Enable the crawler
Set Crawler to ON, then click Save Changes. Keep the default load settings unless you have a reason to change them.
Note: The crawler must also be allowed by the web server. It may not be available on every plan. Turn it off if it causes high resource use or makes your website slower.
What if the Redis connection test fails?
Check these points:
- Redis is enabled in DirectAdmin.
- The Host field contains the complete socket path from your own DirectAdmin account.
- The Port field is set to 0.
- You clicked Save Changes after entering the settings.
- No other Redis or object-cache plugin is active.
If the test still fails, disable Object Cache and contact Site.eu support. Include a screenshot of the LiteSpeed status box, but do not share your WordPress password.
That is it. LiteSpeed page caching and Redis object caching are now connected. Check your website while logged out of WordPress to make sure every page, menu, and form still works as expected.
Couldn’t find what you were looking for?
You can always chat with one of our experts for any questions you might have!
