Unfortunately, there is no official way to uninstall CentOS Web Panel. Other web hosting panels (like DirectAdmin, VestaCP) have uninstallers but CWP doesn’t have one.
The official site states:
CWP has no uninstaller, since you are installing it on the clean “CentOS 6 minimal version” it completely modifies your system and installs tons of packages.
The only way to remove CWP is to reinstall your server to the original state, like you had it before cwp installation.
So, the best way is to reinstall your operating system.
If you want to uninstall CWP (CentOS Web Panel) from your CentOS 8.5 system, you should be aware that this process isn’t as straightforward as a simple package uninstall. CWP tightly integrates itself into the system, and there’s no “official” uninstaller script.
However, if you want to attempt to remove it, follow these general steps. Always make sure to backup your data before performing such tasks.
Backup Data: Before doing anything, back up your entire server. CWP changes a lot of configurations, and if anything goes wrong, you will need a backup to restore.
Stop and Disable CWP services:
bash
systemctl stop cwpsrv
systemctl disable cwpsrv
Remove CWP Packages:
bash
yum remove cwp*
Remove CWP Directories:
bash
rm -rf /usr/local/cwpsrv
rm -rf /usr/local/cwp
rm -rf /var/local/cwp
Restore Original Configurations: Since CWP might have changed a lot of configurations (like Apache, MySQL, etc.), you might want to either reinstall these services or restore from a backup configuration if you have one.
Reconfigure DNS: If you’ve used CWP’s DNS functions, you’ll need to remove or reconfigure named (BIND) according to your needs.
Remove CWP Database: CWP uses a MariaDB/MySQL database named root_cwp. You can drop it using:
bash
mysql -u root -p -e “DROP DATABASE root_cwp;”
Reconfigure or Reinstall Other Services: CWP manages services like Apache, PHP, MariaDB, and more. If you’ve removed CWP, these configurations may be orphaned or non-functional. You’ll need to reconfigure them manually or consider reinstalling them.
Remember, these steps will only remove the CWP and its configurations. The software installed and managed by CWP (like Apache, MySQL, etc.) will remain on your system. If you wish to remove them, you will need to do it manually or reinstall your system if a clean slate is desired.
Lastly, if your end goal is just to use another control panel or have a clean system, it might be easier to backup your data and set up a fresh CentOS installation.