Overview
This document describes the steps to uninstall LiteSpeed Web Server from cPanel & WHM. These steps will prevent an accidental reinstallation of LiteSpeed Web Server.
Uninstall LiteSpeed Web Server
To uninstall LiteSpeed Web Server, perform the following steps:
-
As the
rootuser, convert your server to use the Apache web server. To do so, run the following command:/usr/local/lsws/admin/misc/cp_switch_ws.sh apache -
Ensure that Apache is running. You can do so from WHM’s Apache Status interface (WHM >> Home >> Server Status >> Apache Status).
- The Restart Time header will indicate the time and date when Apache restarted.
-
Uninstall the LiteSpeed Web server plugin. From the command line, run the WHM plugin uninstallation script:
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.shNote:This action only removes the LiteSpeed Web Server plugin from your server. It does not remove LiteSpeed Web Server from your server.
-
Remove LiteSpeed Web Server files from your server. The following command removes the LiteSpeed Web Server directory (
lsws) from the/usr/localdirectory:/usr/local/lsws/admin/misc/uninstall.shNote:Users who purchased LiteSpeed Web Server through cPanel, L.L.C must complete the following step. Otherwise, you may stop at step 4.
-
Users who purchased LiteSpeed Web Server through the cPanel Store must create a
touchfile. This file will prevent theupcpscript from reinstalling LiteSpeed Web Server during the next cPanel & WHM update.
To create the touch file, run the following command:
touch /var/cpanel/disable_auto_lsws