Knowledgebase

How to Configure LiteSpeed for WordPress in cPanel Print

  • 0

LiteSpeed is a high-performance web server that works seamlessly with WordPress. When properly configured in cPanel and WordPress, it significantly improves website speed, security, and performance.

This guide explains how to configure LiteSpeed on both cPanel and WordPress using the LiteSpeed Cache (LSCache) plugin.


Requirements

Before starting, ensure:

  • Hosting uses LiteSpeed Web Server

  • WordPress is installed

  • You have access to cPanel and WordPress Admin

  • AutoSSL is enabled


Part 1: Configure LiteSpeed in cPanel

Step 1: Verify LiteSpeed Is Active

https://www.litespeedtech.com/images/screen_captures/whm-ls-plugin.png
https://docs.litespeedtech.com/lsws/images/realtime01.png

In cPanel:

  1. Scroll to Metrics / Software

  2. Look for LiteSpeed Web Cache Manager
    (If present → LiteSpeed is active)

If missing, contact your hosting provider.


Step 2: Enable SSL (Important)

  1. Go to Security → SSL/TLS Status

  2. Ensure your domain shows a green lock (????)

LiteSpeed Cache works best with HTTPS.


Step 3: Check PHP Version & Handler

https://chemicloud.com/kb/wp-content/uploads/2018/05/Software-Select-PHP-Version.png
https://www.interserver.net/tips/wp-content/uploads/2017/06/PHP-Settings1.png
  1. Go to Software → Select PHP Version

  2. Use:

    • PHP 8.1 or 8.2 (recommended)

  3. Ensure handler is LiteSpeed (lsapi)


Part 2: Configure LiteSpeed Cache in WordPress

Step 4: Install LiteSpeed Cache Plugin

https://ps.w.org/litespeed-cache/assets/banner-1544x500.png?rev=2554181
https://www.greengeeks.com/tutorials/wp-content/uploads/2020/04/litespeed-plugin-install.png
  1. Log in to WordPress Admin

  2. Go to Plugins → Add New

  3. Search for LiteSpeed Cache

  4. Click Install → Activate


Step 5: Enable LiteSpeed Cache

https://docs.litespeedtech.com/lscache/lscwp/images/general03.png
https://blog.k.io/attachment/3a7945ba-b183-451e-9d30-6aee7919261a/NehbyFx.png
  1. Go to LiteSpeed Cache → General

  2. Ensure:

    • Enable LiteSpeed Cache: ON

  3. Click Save Changes


Step 6: Recommended LiteSpeed Cache Settings

Cache Settings

 
LiteSpeed Cache → Cache
  • Enable Cache: ✅ ON

  • Cache Logged-in Users: ❌ OFF

  • Cache Mobile: ❌ OFF (unless mobile theme)

  • Cache REST API: ✅ ON


Page Optimization (Speed Boost)

https://docs.litespeedtech.com/lscache/lscwp/images/pageopt01.png
https://chemicloud.com/kb/wp-content/uploads/2021/08/2-5.png
 
LiteSpeed Cache → Page Optimization

Enable:

  • CSS Minify: ✅ ON

  • JS Minify: ✅ ON

  • HTML Minify: ✅ ON

  • Load CSS Asynchronously: ✅ ON

  • Combine CSS/JS: ❌ OFF (safer)


Media Optimization

 
LiteSpeed Cache → Media
  • Lazy Load Images: ✅ ON

  • Lazy Load iFrames: ✅ ON

  • Image Optimization: ✅ ON


Database Optimization

 
LiteSpeed Cache → Database
  • Clean Revisions

  • Clean Transients

  • Optimize Tables
    (Use weekly, not daily)


Step 7: Enable Browser Cache (Optional)

 
LiteSpeed Cache → Browser
  • Browser Cache: ✅ ON


Part 3: Clear & Test Cache

https://www.greengeeks.com/support/wp-content/uploads/2021/07/Purge-All.png
https://ventraip.com.au/wp-content/uploads/2020/10/wordpress-ls-cache-clear-cache.png
  1. Go to LiteSpeed Cache → Toolbox

  2. Click Purge All

  3. Visit your website and test pages


Common Issues & Fixes

404 Errors After Enabling LiteSpeed

  • Go to Settings → Permalinks

  • Click Save Changes


Website Broken After Optimization

  • Disable CSS/JS Combine

  • Purge cache

  • Test again


Cache Not Working

  • Confirm LiteSpeed server (not Apache)

  • Check .htaccess permissions

  • Disable other caching plugins


Best Practices

✅ Use only one caching plugin
✅ Always clear cache after changes
✅ Enable HTTPS before caching
✅ Backup before optimization changes


Performance Results (Typical)

  • Faster page load time

  • Improved Google PageSpeed score

  • Reduced server CPU usage

  • Better user experience


Conclusion

Configuring LiteSpeed for WordPress in cPanel is one of the best ways to boost website performance. With proper cache, optimization, and SSL setup, your site will load faster and handle more traffic efficiently.


Was this answer helpful?

« Back

Chat with us Call us

Looking for the Right Hosting Solution?

Our expert support team is here to guide you to the ideal hosting solution for your specific needs. Get personalized recommendations and answers to all your questions.

Get Expert Consultation

Copyright © 2026 Tupoa Hosting. All Rights Reserved.