How to Install LiteSpeed Web Server in WHM/cPanel with Centos 7.x?

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.

    wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
  5. Now, let us run the script.

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

    litespeed-install

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

    rm -f lsws_whm_plugin_install.sh

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.

    litespeed-plugin

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

    i-agree-litespee

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

         installation-type

      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.

        installation-complete

  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.

    confirm-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 Install NGINX in WHM Server Through Engintron?

Engintron (Nginx on cPanel) is an open source NGINX installer, which integrates your existing WHM...

How to Install UNIXy cPanel Varnish Plugin?

UNIXy is a feature-rich Varnish cache plugin for WHM servers developed by UNIXy. It allows you to...

How to Install NGINX in WHM Server Through Cpnginx?

Cpnginx is yet a feature-rich customizable NGINX installer. It allows you to build and deploy...

How to Install XVarnish in WHM Server?

xVarnish is an open source high-performance HTTP accelerator, best suitable for shared WHM...