LiteSpeed Web Server is a high-performance replacement for Apache and integrates seamlessly with WHM/cPanel. This guide walks you through installing and uninstalling the LiteSpeed WHM plugin.
โ Installing the LiteSpeed WHM Plugin
You can install the LiteSpeed plugin using either the WHM interface or via SSH.
๐น Option 1: Install via WHM Interface
- Log in to WHM as the root user.
- Navigate to Plugins ยป LiteSpeed Web Server Plugin for WHM.
- Click Install to complete the setup.
๐น Option 2: Install via Command Line
- Connect via SSH as the root user.
- Run the following commands:
cd /usr/src
wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
sh ./lsws_whm_plugin_install.sh
rm -f lsws_whm_plugin_install.sh
โ This installs the LiteSpeed WHM plugin and adds it under WHM ยป Plugins.
โ Uninstalling the LiteSpeed WHM Plugin
To completely remove LiteSpeed from your server:
๐ Step 1: Switch Back to Apache
/usr/local/lsws/admin/misc/cp_switch_ws.sh apache
๐ Step 2: Verify Apache is Running
systemctl status httpd
๐งน Step 3: Uninstall the WHM Plugin
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh
๐๏ธ Step 4: Remove LiteSpeed Web Server Files
/usr/local/lsws/admin/misc/uninstall.sh
๐ Step 5: Prevent Automatic Reinstallation (if bought via cPanel Store)
touch /var/cpanel/disable_auto_lsws
๐ This prevents upcp
from reinstalling LiteSpeed automatically during cPanel updates.
๐ Notes
- Compatible with cPanel on CentOS, AlmaLinux, CloudLinux, Rocky Linux, etc.
- Ensure port 7080 is open in your firewall to access the LiteSpeed Admin Web Console.