How to Install LiteSpeed with cPanel on Dedicated Server/VPS
This guide walks you through installing LiteSpeed Web Server on a server running cPanel. LiteSpeed is a high-performance Apache alternative that improves website speed and server resource usage.
Prerequisites
- cPanel Server - Your server must have cPanel/WHM installed.
- Root Access - You need root access via SSH or WHM Terminal.
- LiteSpeed License - A valid LiteSpeed license serial number.
Step-by-Step Guide
- Access the server's command line as the
rootuser via SSH or Terminal in WHM.
- Remove the existing LiteSpeed folder (if it exists):
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/lsws
- Download the LiteSpeed WHM auto-installer script:
wget https://www.litespeedtech.com/packages/cpanel/lsws_whm_autoinstaller.sh

- Update the script's permissions to make it executable:
chmod a+x lsws_whm_autoinstaller.sh

- Run the installer script. Replace
<license>with your actual LiteSpeed license:
./lsws_whm_autoinstaller.sh <license>
Example:
./lsws_whm_autoinstaller.sh XXXX-XXXX-XXXX-XXXX

Verification
Once the installation completes:
- Log in to your WHM (Web Host Manager).
- Look for "LiteSpeed Web Server" in the left sidebar or plugin section.
- You have successfully installed LiteSpeed Web Server and can now access it successfully.

Important Notes
- Serial Number Required - The installation will not work without a valid LiteSpeed serial number.
- Switching Servers - You can switch back to Apache at any time from WHM if needed.
- Existing Folder - Step 2 removes any previous LiteSpeed installation to ensure a clean setup.
Need Further Assistance?
If you face any issues or need assistance, don’t hesitate to reach out — our support team is always ready to help!
🔧 Need help? Submit a Support Ticket
💬 Chat with us on Live Chat via our website
Updated on: 21/05/2026
Thank you!