Articles on: LiteSpeed

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


  1. Access the server's command line as the root user via SSH or Terminal in WHM.


  1. Remove the existing LiteSpeed folder (if it exists):


rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/lsws


  1. Download the LiteSpeed WHM auto-installer script:


wget https://www.litespeedtech.com/packages/cpanel/lsws_whm_autoinstaller.sh



  1. Update the script's permissions to make it executable:


chmod a+x lsws_whm_autoinstaller.sh



  1. 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:


  1. Log in to your WHM (Web Host Manager).


  1. Look for "LiteSpeed Web Server" in the left sidebar or plugin section.


  1. 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

Was this article helpful?

Share your feedback

Cancel

Thank you!