How to install Litespeed Web Server on CentOS 7.x with cPanel?

LiteSpeed is the famous popular web server and drop-in replacement of Apache webserver. It provides features to optimize web content and faster content delivery. It allows your website performance better with a smaller memory footprint. It is also compatible with Apache features that help to reduce downtime during migration from Apache to LiteSpeed Web Server.

Here are the steps to install LiteSpeed Web Server on Centos 7.x with cPanel.-

Note : Make sure that you are logged in with the root user in your Centos server.

  1. Login to your server using ssh with root privileges.

  2. Update your server using the below command.

    # Yum update -y
  3. Enter the below command to go in the src directory.

    cd /usr/src 
  4. Download the LiteSpeed Web Server installation script for cPanel using the below command.

  5. Now, let us run the script.

  6. Once the LiteSpeed is installed, you will find the below output in your ssh session.


  7. We will remove the installation script using the below command.

    rm -f

Install LiteSpeed Web Server from WHM/cPanel.

  1. Login to your WHM Panel using root access.

  2. We have installed the LiteSpeed plug-in for cPanel. Next, Login to WHM Control Panel and navigate to Plugins. You should find the LiteSpeed Web Server listed in that page. Click on LiteSpeed Web Server.


  3. At the next page, tick on I Agree,


      Choose a License type. (a) Enter your serial number (If you choose an enterprise license) or (b) Select Required a trial license.


      Installation Option :

      Set Port Offset value to 0 to replace Apache with LiteSpeed. Change the value to 2000 if you want to use LiteSpeed on Port 2080.

      Provide your Email Account and set Web admin console username and password and finally click on Install Button.


      Once it is installed completely, you will find the below screen. Click on the OK button at the end of the page.


  1. Click on the Manage Cache Installations to generate cache management data.

  2. Hit Switch to LiteSpeed button to replace Apache with LiteSpeed Web Server.

  3. Click on the OK button to finish your installation.


  4. Go to SSH and verify that the LiteSpeed Web Server service is running with the below command.

    systemctl status lshttpd

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Upgrade PHP Version in cPanel/WHM Server?

Following article will assist you to upgrade PHP version in cPanel/WHM server. This article is...

How to install Codeignetor centos 7?

Codeignetor is a PHP framework used to build a web application that is used widely by the...


Dos and Don'ts for Linux Classic VPS, SSD VPS, and Linux Private Cloud VPS : Please allow...

5 Wget Command Examples to Download Files in Linux.

wget is used to download your files from the remote server. It is used mostly on Linux...

How to install MongoDB version 4.0 on Centos 7?

MongoDB is an open-source and free Database service. It is a NoSQL Database and it is different...