cPanel

How to Uninstall LiteSpeed Web Server


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:

  1. 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
  2. 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.
  3. 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.

  4. 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.

  5. 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

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also
Close