LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2015, 08:11 PM   #1
ojslayout
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Rep: Reputation: Disabled
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.
 
Old 06-04-2015, 09:12 PM   #2
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 633

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
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
 
Old 06-04-2015, 10:48 PM   #3
ojslayout
LQ Newbie
 
Registered: Jun 2015
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Sefyir View Post
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?
 
Old 06-05-2015, 12:04 AM   #4
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 633

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
If the directory / files have been deleted, and you are using this from a hosting provider, the correct action would be to contact them.
 
Old 06-06-2015, 03:56 PM   #5
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How ti recover deleted folder using 'rm -rf' harshaabba Linux - Server 5 08-25-2014 02:53 PM
Deleted Folder to recover venkatp2013 Linux - Newbie 4 09-23-2013 11:35 AM
Recover deleted folder makowka Linux - General 2 11-23-2012 09:05 AM
how to recover deleted folder 124vikas.dange@gmail.com Linux - Software 1 09-09-2009 08:21 AM
How do I recover a rm deleted folder? CrownAmbassador Linux - Desktop 13 02-16-2009 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration