Accidentally Deleted /usr/bin and /usr/lib directories

pije76

Registered
May 31, 2014
3
0
1
cPanel Access Level
Website Owner
In the process of trying to setup additional php module I accidentally removed the default /usr/bin & /usr/lib directories. Is there a way i can get this folder to restore it by using SSH? Thanks

- - - Updated - - -

I also using following command:
rpm -qf $(rpm -qla|grep ^/usr/bin)|uniq|sort
yum reinstall $(rpm -qf $(rpm -qla|grep ^/usr/bin)|uniq|sort)
But still luck. Any idea?

- - - Updated - - -

I mean: *still no luck*

- - - Updated - - -

Also I get Internal Server Error for all of my sites.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Recovery is going to be difficult after the removal of those directories. You may want to consult with a qualified system administrator, but the likely best path to take here is to restore the accounts from backup onto a new system, or move the backup archives to a remote server and reinstall cPanel/CentOS on the current server.

Thank you.
 

pije76

Registered
May 31, 2014
3
0
1
cPanel Access Level
Website Owner
Hello :)

Recovery is going to be difficult after the removal of those directories. You may want to consult with a qualified system administrator, but the likely best path to take here is to restore the accounts from backup onto a new system, or move the backup archives to a remote server and reinstall cPanel/CentOS on the current server.

Thank you.
Hello Michael, thank you to answer my question.
So it can not recover it through Cpanel/WHM dashboard?
How about if I installing the same version of Cpanel & WHM from another VPS and then copy that directories into the broken VPS?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
There are no tools in cPanel/WHM that will resolve this issue. You are welcome to see if copying over those files from another system helps, but keep in mind that it's not supported or guaranteed to work.

Thank you.