LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How To Recover Deleted Script Folder from the Root (https://www.linuxquestions.org/questions/linux-software-2/how-to-recover-deleted-script-folder-from-the-root-4175544530/)

ojslayout 06-04-2015 07:11 PM

How To Recover Deleted Script Folder from the Root
 
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.

Sefyir 06-04-2015 08:12 PM

Did you do that entirely as one command?
Code:

ssh user@domain[~] cd /scripts
I'm not sure that's a valid ssh command
Perhaps try just logging and and then cding?
Code:

ssh user@domain
cd /scripts


ojslayout 06-04-2015 09:48 PM

Quote:

Originally Posted by Sefyir (Post 5372355)
Did you do that entirely as one command?
Code:

ssh user@domain[~] cd /scripts
I'm not sure that's a valid ssh command
Perhaps try just logging and and then cding?
Code:

ssh user@domain
cd /scripts


I am using putty.

I can use that cd/scripts and it says NO such file or directory. A server provided by a web hosting company should have a directory scripts under the root right? Our other server has this script folder. I think I have accidentally deleted this script folder.

This folder scripts contain scripts like /scripts/easyapache, /scripts/updateuserdomains, /scripts/ftpupdate,/scripts/rebuilddnsconfig

How can I recover/re-install it?

Sefyir 06-04-2015 11:04 PM

If the directory / files have been deleted, and you are using this from a hosting provider, the correct action would be to contact them.

joec@home 06-06-2015 02:56 PM

Look to see if there is a directory for /usr/local/cpanel/scripts/ Not all, but the major scripts will be duplicated there. In the mean time you would want to have the issue addressed to cpanel. They might need a case connect but you can ask about this in their forums as well.

https://forums.cpanel.net/
cPanel Forums


All times are GMT -5. The time now is 05:42 PM.