A Guide to Installing LiteSpeed Web Server in cPanel With Centos 7.X

A Guide to Installing LiteSpeed Web Server in cPanel With Centos 7.X

LiteSpeed is a popular paid web server that’s powering thousands of websites. It is used often as a drop-in replacement for the Apache web server.

One reason why it’s so popular is because it speeds up websites and their performance. You’re going to find rich set of features that can optimize content for faster delivery. Thus, your website will have a smaller data footprint.

If you’re worried about how to install LiteSpeed web server in your cPanel with Centos 7.X, this guide is for you. Here we thoroughly explain how to install LiteSpeed web browser in your Centos server.

centos.jpg


Installing LiteSpeed with SSH

To start the process, just follow the steps mentioned below:
  • Login to the server using the ssh. Make sure you have the root privileges
  • Now, you need to update your server to the latest version. Use this command for this purpose
Code:
- # Yum update -y
  • Navigate to the scr directory using this command
Code:
- cd /usr/scr
  • In this directory, you need to download and install the LiteSpeed web server. Use this command for this purpose
    Code:
    - Wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
  • Run this downloaded script using this command
Code:
- sh lsws_whm_plugin_install.sh
  • You’ll receive a confirmation that LiteSpeed was installed successfully.
  • Finally, remove the installation script with this command
Code:
- rm -f lsws_whm_plugin_install.sh
Installing LiteSpeed from cPanel

Now comes the second part of the installation process which is installing LiteSpeed from the cPanel. Follow the steps below.
  • Login to your WHM/cPanel account using the admin credentials
  • Navigate into Home >> Plugins
  • Here, you’ll find the LiteSpeed Web Server we have installed in the previous step
  • Click on the LiteSpeed icon to initiate the process
  • In the next step, you’ll be asked to provide a serial number. You need to purchase a licensing copy since LiteSpeed is a paid server. If not, you can begin a trial license that’ll be valid for 7 days or so.
  • For installation option, you have to set the Offset value to 0. This would replace Apache with LiteSpeed. If your requirement is to use LiteSpeed on Port 2080, then you must change the value to 2000.
  • Next, input your email address and set the username and password of your choice. Click on Install to being the installation process.
Setting Up LiteSpeed

The LiteSpeed web server is now installed. To begin using it, you must set it up by applying appropriate settings.
  • Click on Manage Cache Installation. This would help you in generating the cache management data. If you’re unaware, then LiteSpeed uses caching to speed up browsing experience.
  • Next, in the “Switch between Apache and LiteSpeed” section, click on “Switch to LiteSpeed
  • Hit the “Ok” button to conclude the installation process
To verify that the LiteSpeed server is up and running, use the following command in SSH
Code:
- systemctl status lshttpd
You should receive the confirmation if LiteSpeed is running.
Author
kumkumsharma
Views
2,365
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from kumkumsharma

Top