Answered by the Webhosting Experts

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 https://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh | sh

cPanel server as the root user and then use the commands below to download the plugin.

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

Plugins Screenshot

 

 

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

 

Installation Options Image

 

 

  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

 

Switch between Apache and LiteSpeed image

  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

LiteSpeed Webserver Configuration Image

  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.

 

Using Apache Configuration File Image

 

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

Index Files Screenshot

Index Files Image 2.

  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.

HT Access image

 

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

LiteSpeed WebSever Image

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

 

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.