๐Ÿš€ Installing the LiteSpeed WHM Plugin

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

  1. Log in to WHM as the root user.
  2. Navigate to Plugins ยป LiteSpeed Web Server Plugin for WHM.
  3. Click Install to complete the setup.

๐Ÿ”น Option 2: Install via Command Line

  1. Connect via SSH as the root user.
  2. 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.
Scroll to Top