How to Uninstall CyberPanel on Ubuntu

How to Uninstall CyberPanel on Ubuntu

CyberPanel is a popular web hosting control panel that offers a range of features for managing websites, databases, and email accounts. However, there might be situations where you need to uninstall it from your web server.

Whether you’re migrating to another control panel, troubleshooting issues, or simply cleaning up, this guide will walk you through the process of uninstalling CyberPanel on an Ubuntu system.

Let’s get started.

Step 1: Backup Your Data

Before uninstalling any software, especially a control panel, ensure you have backed up all your websites, databases, emails, and any other critical data. This step is crucial as the uninstallation process will remove all associated data.

Step 2: Stop All CyberPanel Services

Before uninstalling, it’s a good practice to stop all running services related to CyberPanel.

sudo systemctl stop lscpd
sudo systemctl stop lshttpd

Step 3: Remove CyberPanel Packages

Use the package manager to remove CyberPanel and its associated packages.

sudo apt-get purge cyberpanel
sudo apt-get autoremove

Step 4: Remove CyberPanel Directories

After uninstalling the packages, ensure that all directories associated with CyberPanel are removed.

sudo rm -rf /usr/local/CyberPanel
sudo rm -rf /usr/local/lsws

Step 5: Clean Up Databases

If you’re sure you won’t need them in the future, you can also remove databases created by CyberPanel.

sudo mysql -u root -p
DROP DATABASE cyberpanel;

Step 6: Remove Firewall Rules

CyberPanel might have added specific firewall rules. Ensure you remove or adjust them as needed.

sudo ufw delete allow 8090/tcp

Commands Mentioned

  • sudo systemctl stop lscpd – Stops the lscpd service
  • sudo systemctl stop lshttpd – Stops the lshttpd service
  • sudo apt-get purge cyberpanel – Removes CyberPanel packages
  • sudo apt-get autoremove – Removes unused packages
  • sudo rm -rf /usr/local/CyberPanel – Deletes the CyberPanel directory
  • sudo rm -rf /usr/local/lsws – Deletes the lsws directory
  • DROP DATABASE cyberpanel; – Deletes the cyberpanel database
  • sudo ufw delete allow 8090/tcp – Removes the firewall rule for port 8090
See also  How to Install Cola on Ubuntu


  1. Why would I want to uninstall CyberPanel?

    There could be multiple reasons, such as migrating to another control panel, troubleshooting specific issues, or performing a clean installation.

  2. Is it safe to uninstall CyberPanel?

    Yes, but always ensure you have backed up all critical data before proceeding with the uninstallation.

  3. Will uninstalling CyberPanel remove my websites?

    Yes, uninstalling CyberPanel will remove all associated data, including websites. Always backup before proceeding.

  4. Can I reinstall CyberPanel after uninstalling?

    Yes, you can reinstall CyberPanel anytime after uninstalling it. Ensure you follow the official installation guide for a smooth process.

  5. What should I do after uninstalling CyberPanel?

    After uninstalling, you can either install another control panel, set up your server manually, or leave it as it is, depending on your requirements.

See also  How to Uninstall Fail2Ban on Ubuntu


Removing CyberPanel on Ubuntu is a straightforward process, but it’s essential to approach it with caution. By following the steps outlined in this guide, you can safely remove CyberPanel from your server.

Always ensure that you have backed up all your critical data before starting the uninstallation.

If you’re looking for alternative hosting solutions or platforms, consider exploring dedicated server hosting, VPS hosting, cloud hosting, or shared hosting to find the best fit for your needs.


Leave a Reply

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