How to Forcefully Reinstall cPanel

Status
Not open for further replies.

Bharat

Active Member
2,003
2010
841
340
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
 
5 comments
All of that is useless steps.
Code:
/scripts/upcp --force

Is all you need to do the yum part has nothing to do with cpanel as cpanel forces all yum installs. The mail and mysql is reinstalled also via the upcp force install.
 
Status
Not open for further replies.
Back
Top