How to uninstall LiteSpeed on cPanel web server?

To uninstall LiteSpeed Web Server, perform the following steps:

As the root user, 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.sh

Note:
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/local directory:

/usr/local/lsws/admin/misc/uninstall.sh

Note:
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 touch file. This file will prevent the upcp script 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
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to install LiteSpeed Web Server in cPanel?

Run the following command to install the LSWS plugin in cPanel: cd /usr/local/srcwget -N...

Apache Fails With "Syntax error on line #" on Server?

If you had an Apache/LiteSpeed-powered web server, you might see such an error that the HTTPD...

404 Not Found Error on All Websites (CyberPanel)

Make sure to check your website without HTTPS. If your website is accessible with HTTP and can't...

How can you Switch to Apache from LiteSpeed?

Apache and Litespeed are web servers. Both of them are good in their own ways and both of them do...

What to do if the activation of the LSWS license is failed?

If you've purchased a LiteSpeed license for your server from us, but you can't activate the...