The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by pije76, Jun 2, 2014.

  1. pije76

    pije76 Registered

    Joined:
    May 31, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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:
    But still luck. Any idea?

    - - - Updated - - -

    I mean: *still no luck*

    - - - Updated - - -

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

    pije76 Registered

    Joined:
    May 31, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Almost forget, I also deleted /usr/local/bin directory too.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. pije76

    pije76 Registered

    Joined:
    May 31, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    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?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page