Articles on: LiteSpeed

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


  1. Access your server as the root user via SSH or Terminal in WHM.


  1. Switch your server back to Apache web server.


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


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


  1. Uninstall the LiteSpeed WHM plugin.


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


This removes the LiteSpeed plugin from WHM but does not delete the LiteSpeed files yet.


  1. Remove all LiteSpeed Web Server files from your server.


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


This removes the entire LiteSpeed directory (/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 root user.


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

Was this article helpful?

Share your feedback

Cancel

Thank you!