There are various ways to optimize your server. One of them is to use a LiteSpeed Web Server - high performance and scalability web server that has many features, which are designed to strengthen your web hosting infrastructure.
1. Installation
LiteSpeed Web Server WHM Plugin can be installed on your server via SSH. The installation commands are listed below:
cd /usr/src
wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
sh ./lsws_whm_plugin_install.sh
After following these steps, you will need to connect to your server through WHM and complete the installation. Search for the LiteSpeed via WHM search:
[screenshot]
LiteSpeed has a paid license. However, for one site, you can use the trial 'Free Starter' version. It is important to note that in order to have a free license, the server must not have more than 2 GB of RAM.
You will also need to enter username and secure password:
After a successful installation, you should see the following result.
2. Configuration
2.1. Change Port Offset
If you want to have both Apache and LiteSpeed Web Server services running on the server at the same time, you will need to change port offset. Navigate to the LiteSpeed via WHM again and open "Change Port Offset":
2.3 Disable ruid2 module
The ruid2 module is incompatible with LiteSpeed Web Server, so you would need to disable it. It can be done in EasyApache 4 settings.
Search and open EasyApache 4:
Click "Customize" to adjust Currently Installed Packages:
Find ruid2 in Apache modules and uncheck it:
Click "Next", then go to "Review" and click 'Provision":
Then, once the provision process is complete, click "Done":
2.3 Add missing timezoneDB extensions
Also, some EasyApache PHP installation may be missing the timezoneDB extension, you should also resolve this. Click "Resolve Now" in the error message on the LiteSpeed page:

Next, click "Confirm" and then "Ok":
2.4 setup root cache
Finally, you will need to setup root cache. You will see this option after clicking Manage Cache Installations:
After setting cache root, go back to the LiteSpeed manager and pick Manage Cache Installations again.
Click "Scan" and wait while scan is completed:
If wordpres sites are found, pick the LSCache plugin version for future installs and optionally force that version across discovered sites.
3. Uninstall LiteSpeed
In case youw ant to uninstal LiteSpeed, run these commands via SSH (as root):
/usr/local/lsws/admin/misc/cp_switch_ws.sh apache
Then uninstall LiteSpeed Web Server with this command:
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh



















