This document describes the steps to uninstall LiteSpeed Web Server from cPanel & WHM. These steps will prevent an accidental reinstallation of the LiteSpeed Web Server.
- Access the server's command line as the 'root' user via ssh or "Terminal" in WHM.
- Run the following command to switch the web server to Apache.
- Run the following command and verify that Apache is running.
systemctl status httpdThe first line in the command's output should show that Apache is the web server and the "Active" line should show that the service is running.
[root@server ~]cPs# systemctl status httpd
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2022-12-16 14:07:52 UTC; 8s ago
Process: 3381 ExecStop=/usr/local/cpanel/scripts/restartsrv_httpd stop --no-verbose (code=exited, status=0/SUCCESS)
Process: 3392 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
Main PID: 3437 (httpd)
Uninstall the LiteSpeed Web server plugin by running the following command.
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.shPlease note: This action only removes the LiteSpeed Web Server plugin from your server. It does not remove LiteSpeed Web Server from your server.
Run the following command to remove LiteSpeed Web Server files from your server.
Please note: users who purchased LiteSpeed Web Server through the cPanel Store must create a touch file to prevent the upcp script from reinstalling LiteSpeed Web Server during the next cPanel & WHM update. To create the touch file, run the following command.