Jump to content

How to use LiteSpeed Cache (LSCWP) for your site using cPanel & WHM


Yang M.

Recommended Posts

tvqy5z46hmr3.png
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. In this tutorial, we explain how you can install the LiteSpeed Web server and use one of its features - LiteSpeed Cache plugin (LSCWP), which will improve the performance of the WordPress sites hosted on your server.

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:
3yw5m8yxdu4b.png
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.
ccq24hf0zk8e.png
After a successful installation, you should see the following result.
hn5be9ynxxd6.png
 

Configuration

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
lf1cjt8l88em.png
nmj7i6ebhrfj.png
The ruid2 module is incompatible with LiteSpeed Web Server, so you would need to disable it. It can be done in EasyApache 4 settings. 
2bm1ahtacbif.png
Also, some EasyApache PHP installation may be missing the timezoneDB extension, you should also resolve this:
pwa1857n6w91.png
hf75gmfj2lml.png
 
Finally, you will need to setup root cache. You will see this option after clicking Manage Cache Installations:
kn5vuswwua02.png
By clicking you will be notified that server and/or Virtual Host cache root has not yet been set and have an option to make changes:
tcnzg80nu82t.png
2uzd7bfnb9js.png

Enabling LiteSpeed Cache

After setting cache root, go back to the LiteSpeed manager and pick Manage Cache Installations again. You will then need to pick a LiteSpeed version you want to use:
ru2u90zkdat8.png
 
nlsmeajph5if.png
Finally, run the scan and enable LiteSpeed Cache to the available sites:
g5lnbm8k1zhj.png
ejrgl3kjwgxy.png

Uninstall

You can uninstall LiteSpeed Web Server via SSH:
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...