How To Set up LiteSpeed in cPanel and WHM

In this article, we want to teach you How To Set up LiteSpeed in cPanel and WHM.

LiteSpeed Web Server is the leading high-performance, high-scalability web server from LiteSpeed technologies.

It can be used to replace an existing Apache server without changing any other programs or operating system details.

Set up LiteSpeed in cPanel and WHM

In this guide, we will teach you how to install LiteSpeed in cPanel with Centos 7.

To install cPanel on Centos 7, you can follow our article How To Set up cPanel and WHM on Centos 7.

Now you can follow the steps below to set up the LiteSpeed webserver in cPanel.

Install LiteSpeed WHM plugin on Centos 7

First, log in to your server as a root user. Update your local package index with the command below:

yum update -y

Then, switch to the src directory with the command below:

cd /usr/src

Next, use the wget command to download the LiteSpeed installer script for cPanel and WHM:


Run the script:


When your LiteSpeed plugin installation is completed, you will get the following output:

Done downloading.
... extracting ...
... moving files ...
... setting permission to files ...
   LiteSpeed is not installed, skip hook operation
Register LSWS Plugin ...
  apps registration directory created
lsws registered
 LiteSpeed WHM Plugin Installed Successfully.
Now you need to log in to your WHM panel to install LiteSpeed on cPanel/WHM.

Install LiteSpeed webserver from cPanel/WHM

At this point, that you have installed the LiteSpeed plugin for cPanel/WHM, you need to navigate to the Plugins section from your cPanel and click on the LiteSpeed webserver.
LiteSpeed web server on cPanel/WHM
Then, you need to click on the install LiteSpeed webserver on WHM.
LiteSpeed installation on cPanel
Next, read the End-User license agreement for LiteSpeed software and check the box next to the I agree.
After that, you need to choose a license type. If you have a license key, choose the use an enterprise license and enter your serial number.
But if you don’t have a license key, choose the request a trial license.
In the next part, set your installation options and WebAdmin console login and click on the Install button.
set LiteSpeed installation options
When your installation is completed, you will see the following message. Click on the ok button.
successfully installed LiteSpeed
Now you need to click on the manage cache installations to generate cache management data.
LiteSpeed cache management
Then, press the switch to the LiteSpeed button to replace the LiteSpeed webserver with Apache on WHM.
switch to LiteSpeed web server
Confirm the operation and click on the switch to LiteSpeed.
confirm to switch to the LiteSpeed
Next, click on the Ok button to complete your LiteSpeed installation.
start LiteSpeed
To verify that your LiteSpeed service is active and running on your server, go to your SSH and run the following command:
systemctl status lshttpd
In your output you will see:
lshttpd.service - LiteSpeed HTTP Server
Loaded: loaded (/usr/lib/systemd/system/lshttpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-01-16 09:53:53 EST; 3min 45s ago
Process: 11695 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
Main PID: 11724 (litespeed)
CGroup: /system.slice/lshttpd.service
├─11724 litespeed (lshttpd - main)
├─11727 lscgid
├─11728 httpd (lscgid)
├─11730 litespeed (lshttpd - #01)
├─11731 litespeed (lshttpd - #02)
├─11849 /usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/do...
└─11850 /usr/local/cpanel/bin/splitlogs --dir=/etc/apache2/logs/do...


At this point, you earn to install LiteSpeed plugins on Centos 7 and install the LiteSpeed webserver on your cPanel/WHM.
Hope you enjoy using it.

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!