How to Uninstall LiteSpeed Web Server from WHM

This article explains the complete steps to uninstall LiteSpeed Web Server from cPanel & WHM. It includes switching back to Apache, removing the WHM plugin, deleting LiteSpeed files, and preventing automatic reinstallation during future updates.

LiteSpeedUninstall Web ServerWHM

~2 min read · Updated Feb 21, 2026

1. Introduction


This guide explains how to fully uninstall LiteSpeed Web Server from cPanel & WHM. Following these steps ensures that LiteSpeed will not be reinstalled automatically during future system updates.


2. Uninstall LiteSpeed Web Server


Step 1: Switch the Web Server Back to Apache


As the root user, run the following command to switch from LiteSpeed to Apache:


/usr/local/lsws/admin/misc/cp_switch_ws.sh apache

Then verify that Apache is running by navigating to:


WHM » Home » Server Status » Apache Status


The Restart Time header will show the last time Apache restarted.


Step 2: Uninstall the LiteSpeed WHM Plugin


This step removes only the LiteSpeed plugin from WHM. It does not remove the LiteSpeed Web Server itself.


/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh

Step 3: Remove LiteSpeed Web Server Files


To completely remove LiteSpeed files from your server, run the following command:


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

Step 4: Prevent Automatic Reinstallation (For cPanel Store Purchases)


Important: This step is required only for users who purchased LiteSpeed Web Server through the cPanel Store.


Create the following touch file to prevent upcp from reinstalling LiteSpeed during the next cPanel & WHM update:


touch /var/cpanel/disable_auto_lsws

Conclusion


By following these steps, LiteSpeed Web Server will be fully removed from your server, and automatic reinstallation will be prevented. This ensures your system remains on Apache unless you manually choose to reinstall LiteSpeed in the future.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue