Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

How To Recover Deleted Script Folder from the Root

Discussion in 'General Discussion' started by anishgiri, Jun 4, 2015.

  1. anishgiri

    anishgiri Member

    Jun 18, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    The root section has a folder named scripts for WHM/Cpanel and other aspects of maintaining your server for your website right? Trying this ssh command,user@domain[~] cd /scripts, it told no such file or directory.

    How can I re install/recover this script directory? Should I contact our web host provider? Or I can recover/re-install/create it easily by myself?

    I am using CENTOS 6.6 x86_64 standard. I tried to restart apache from WHM and it hangs. Now my website and whm are not showing. Maybe it hangs because the script for restarting apache was already deleted.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    1. It's first important to determine how /usr/local/cpanel/scripts (what "/scripts" links to) was deleted so it does not happen again. Did you remove it manually? Or, did you simply notice it was removed?

    2. Do you have any backups of your filesystem available so the /scripts directory can be restored?

    Thank you.

Share This Page