/downcp

The unofficial cPanel uninstall script

Primary LanguageShellMIT LicenseMIT

downcp

The unofficial cPanel uninstall script

          _.-^^---....,,--       
      _--                  --_  
     <     ____                >          __
  __|__   / __ \  ____ _   ____ | ___    / /
 / ___/  / /_/ / / __  /  / __ \ / _ \  / / 
/ /__   / ____/ / /_/ /  / / / //  __/ / /  
\___/  /_/      \__,_/  /_/ /_/ \___/ /_/     
     |                         | 
      \._                   _./  
         '''--. . , ; .--'''       
               | |   |             
            .-=||  | |=-.   
             -=#$%&%$#=-'   
               | ;  :|     
      _____.,-#%&$@%#&#~,._____

downcp

The easy way to nuke cPanel...

PURPOSE

This script is designed to remove cPanel from a server. cPanel was not designed to be uninstalled and there is really no good reason to ever do this, you're better off re-OSing. This is more of an experiment. If you use this on anything important, you're an idiot.

HOW IT WORKS

This script does a variety of things, starting by disabling the cPanel service. After doing so, it removes cPanel packages, repos, users, files, crons, services, etc. This script was made with systemd in mind so don't try it on CentOS/RHEL 6.11 or lower servers. Really, you shouldn't try this on anything unless you're a fool, but, oh well.

This script should NOT delete anything non-cPanel. Any databases or site files you have should stay fully intact. Also, this does remove Apache from the server but not MySQL.

BASHRC/PROFILE

Part of this scripts operation involves replacing all ~/.bashrc, ~/.bash_profile files as well as /etc/bashrc and /etc/profile. Those files are pulled from this repo are were copied from a fresh CentOS 7 install. Please note it may be necessary to modify those files after running this script to match your specific needs.

HOW TO RUN IT

MUST BE RUN AS ROOT!

wget https://raw.githubusercontent.com/killcpanel/downcp/master/nuke.sh && chmod +x nuke.sh && sh nuke.sh

This can take quite some time to run, probably best to start in a screen.

REQUIREMENTS

  • CentOS/RHEL 7+
  • Some minimum version of cPanel (TBD, lets say 11.60+)
  • Probably EasyApache 4 (TBD, who knows)
  • An iron will to remove cPanel, no matter the cost
  • Make backups first...