There comes a time in everyone's security life you need to rebuild a cpanel server.. i'm talking about the OS, whm/cpanel and it's modules.. not websites. I wanted to document the process I use to rebuild it:

1. Force an CentOS/Redhat Reinstall by:
  1. Create an empty directory: mkdir /tempreinstall
  2. CD into the new empty directory: cd /tempreinstall
  3. Force a Yum update: yum reinstall *
  4. delete the temp empty directory


2. Force cpanel to update with:
Code: 
/scripts/upcp --force
3. Force the webmail systems to update with:

Roundcube:
Code: 
/usr/local/cpanel/bin/update-roundcube ?-force
Horde:
Code: 
/usr/local/cpanel/bin/update-horde ?-force
Squirrelmail
Code: 
/usr/local/cpanel/bin/update-squirrelmail ?-force
4. Reinstall MySQL:
Code: 
/scripts/mysqlup --force
Source
Bharat Reviewed by Bharat on . How to Forcefully Reinstall cPanel There comes a time in everyone's security life you need to rebuild a cpanel server.. i'm talking about the OS, whm/cpanel and it's modules.. not websites. I wanted to document the process I use to rebuild it: 1. Force an CentOS/Redhat Reinstall by: Create an empty directory: mkdir /tempreinstall CD into the new empty directory: cd /tempreinstall Force a Yum update: yum reinstall * delete the temp empty directory Rating: 5