How to Uninstall LiteSpeed with cPanel on Dedicated Server/VPS
This guide walks you through removing LiteSpeed Web Server from your cPanel server and switching back to Apache.
Prerequisite
- Root Access - You need root access via SSH or WHM Terminal.
- LiteSpeed Installed - LiteSpeed Web Server is currently installed on your server.
Step-by-Step Guide
- Access your server as the
rootuser via SSH or Terminal in WHM.
- Switch your server back to Apache web server.
/usr/local/lsws/admin/misc/cp_switch_ws.sh apache
- Make sure Apache is running properly. You can check this in WHM:
- Go to WHM » Home » Server Status » Apache Status
- Confirm that Apache is active and running
- Uninstall the LiteSpeed WHM plugin.
/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh
- Remove all LiteSpeed Web Server files from your server.
/usr/local/lsws/admin/misc/uninstall.sh
/usr/local/lsws) from your server.Important Notes
- Apache Required - You must switch to Apache before uninstalling LiteSpeed.
- Plugin vs. Files - Step 4 removes the WHM plugin. Step 5 removes the actual LiteSpeed files.
- Root Access Needed - All commands must be run as the
rootuser.
Need Further Assistance?
If you face any issues or need assistance, don’t hesitate to reach out — our support team is always ready to help!
🔧 Need help? Submit a Support Ticket
💬 Chat with us on Live Chat via our website
Updated on: 25/05/2026
Thank you!