Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

cPanel and LiteSpeed Integration

Follow the steps below to install Litespeed as a cPanel Plugin. This will help you install, configure and manage LiteSpeed from the WHM itself.

1) Login to your cPanel server as the root user and then use the commands below to download the plugin.

# cd /usr/local/src
# curl | sh

2) Log-in to WHM & you should see “Litespeed Web Server” menu under “Plugins” menu.



  1. Click ‘Install LiteSpeed’ and let it run through the installation procedure, which is completely automated.




  1. Upload the trial license key file which would be in a ‘.zip’ format. (You need to purchase license for 15 days trial period or go for an Enterprise version) Give the LiteSpeed target installation directory (IE: /usr/local/lsws)

  2. Set Port Offset ( set to 0 to replace Apache otherwise set a number like “2000” to try LiteSpeed on port 2080.     Setting a port makes the server to run Apache and Litespeed in parallel. )

  3. Enable PHP SuEXEC

  4. Choose admin username & password and start installing.

  5. Litespeed should now be installed on your server. Now click on “Build Matching PHP Binary” option this will take 10-20mins (Apache will stay running).

  6. Click ‘Switch to LiteSpeed


  1. Restart litespeed .

NOTE – Do NOT uncheck “httpd” service under WHM service manager, otherwise WHM wont restart LiteSpeed automatically when configuration has been changed

  1. To integrate LiteSpeed with cPanel access admin area at https://yourserverip:7080

  1. Goto Configurations >> Server >> General


  1. Scroll down to “Using Apache Configuration File” click on edit and make the changes specified as in the below screenshot.



  1. Now move to “Index Files” on the same screen and set it as follows , save and click on back

  1. Move to htaccess on the same screen, click on edit and make the changes as specified in the below screenshot. Once done click on save and then click on Back.


  1. Now move back to the configurations >> Server >> Listeners and delete all current listeners.

  1. Restart the litespeed webserver with command “service lsws restart” from SSH


Share on Twitter
Share on Facebook