# LiteSpeed on cPanel: Install, Licence, Switch to Apache and Uninstall (Tested)

Source: https://srvscripts.com/guides/litespeed-cpanel-install-license-switch-uninstall/
Updated: 2026-10-11
Publisher: srvScripts (https://srvscripts.com/)

**Short answer:** install with `bash <( curl https://get.litespeed.sh ) SERIAL`, or use `TRIAL` for a trial licence. Switch with `/usr/local/lsws/admin/misc/cp_switch_ws.sh lsws`, and back to Apache with `cp_switch_ws.sh apache`. Check the licence with `/usr/local/lsws/bin/lshttpd -V` and update with `/usr/local/lsws/admin/misc/lsup.sh`.

To uninstall, in this order:

- switch to Apache;

- run `/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh`;

- run `/usr/local/lsws/admin/misc/uninstall.sh`, answering `y`, `n`, `n` so the configuration and logs go too.

We did all of this on our cPanel lab server (cPanel & WHM 138.0 build 15, AlmaLinux 9.8) on 11 October 2026: a trial install of LiteSpeed Enterprise 6.3.7, the licence and version checks, the switch to LiteSpeed and back, a graceful restart, an update check and a full uninstall. Afterwards the four test sites answered with `Server: Apache` again. We did not test a paid serial or a licence bought through the cPanel Store.

## LiteSpeed commands quick reference

| Task | Command | Notes |
| --- | --- | --- |
| Install with a serial | bash  lsws.options
