![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576137-453521-1.png)
**Optimizing your server can greatly enhance performance and user experience. One effective method is using LiteSpeed Web Server, a high-performance and scalable web server with many features designed to strengthen your web hosting infrastructure. This tutorial explains how to install LiteSpeed Web Server and use its LiteSpeed Cache plugin (LSCWP) to improve the performance of WordPress sites hosted on your server.**
Installation
Installing LiteSpeed Web Server WHM Plugin via SSH
- Connect to your server via SSH.
- Run the following commands:
- After executing these commands, connect to your server through WHM to complete the installation.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576288-262481-2.png)
Note: LiteSpeed has a paid license, but for one site, you can use the trial 'Free Starter' version. The server must have no more than 2 GB of RAM to use the free license.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576547-544613-3.png)
After successful installation, you should see a confirmation message.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576593-400714-4.png)
Configuration
Running Apache and LiteSpeed Web Server Concurrently
If you want to run both Apache and LiteSpeed Web Server services on the server simultaneously, you need to change the port offset.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722577465-807930-16.png)
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576637-102747-5.png)
Disabling the ruid2 Module
The ruid2 module is incompatible with LiteSpeed Web Server. Disable it in the EasyApache 4 settings.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576703-74042-6.png)
Resolving PHP TimezoneDB Extension Issue
Some EasyApache PHP installations may lack the timezoneDB extension. Ensure this is resolved.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576751-871662-7.png)
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576797-468805-8.png)
Setting Up Root Cache
- Click on "Manage Cache Installations" in the LiteSpeed manager.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576867-541970-9.png)
- You will be notified that the server and/or Virtual Host cache root has not been set. Follow the prompts to make changes.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722576968-765837-10.png)
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722577004-492435-11.png)
Enabling LiteSpeed Cache
- After setting the cache root, return to the LiteSpeed manager and select "Manage Cache Installations" again.
- Choose the LiteSpeed version you want to use.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722577084-677105-12.png)
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722577113-740427-13.png)
- Run the scan and enable LiteSpeed Cache for the available sites.
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722577190-370435-14.png)
![](https://www.community.vpssell.com/assets/files/2024-08-02/1722577219-63798-15.png)
Uninstalling LiteSpeed Web Server
To uninstall LiteSpeed Web Server via SSH, run:
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh
By following these steps, you can efficiently install and configure LiteSpeed Web Server and its cache plugin to optimize the performance of your WordPress sites hosted on your server.