How to uninstall the CMC from CentOS/RHEL7 or WHM/cPanel servers
In this article, we'll demonstrate how to uninstall ConfigServer ModSecurity Control (CMC) from CentOS/RHEL7 or WHM/cPanel Servers. Please note that to follow either of these options you need to have root access to your dedicated server.
Steps to uninstall the CMC:
Follow these simple SSH commands from the root shell to uninstall the CMC:
1) Log in to the server via SSH as a root user.
2) Navigate to the src folder.
# cd /usr/local/src/
3) Make sure that there is no 'cmc.zip' file in that folder. If already exist, please remove them.
# rm -rf /usr/local/src/cmc.tgz
4) Download the new CMC zip file
# wget http://download.configserver.com/cmc.tgz
5) Extract the zip file and perform the below steps to uninstall it.
# tar -xzf cmc.tgz
# cd cmc
# sh uninstall.sh
# rm -rf /usr/local/src/cmc*
Conclusion:
Our support team has provided a complete explanation in this post and we have also covered the details of how to display the results of the operation.