Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a VPS with Plesk Panel. I wanted to delete some folders in file manager,but I have some problems with permissions, so I must delete them via SSH Accsess.

I went to the directory:

cd /var/www/vhosts/mysite.com/httdocs/myfolder/

Then I remove the folder with:

rm -rf /

After that, I tried to login into Plesk Panel,but i get International SERVER ERROR. Also then i was tred to restart the VPS.I have restarted,and from that,my server is Server stopped

If i change the status,after some time again is stoped.I can't start basicly.

My IP is: 62.75.141.188

It's bad, I can't connect now on server,becouse is stoped.I don't have access.

EDIT

I didn't make a backup.But i have it more files inside.Importnat for me. How it's possible to get back?

share|improve this question
1  
A strong fail of the year candidate - you spoil us, bravo! –  Chopper3 Apr 7 '11 at 18:36
    
Please tell us this is an April Fool's joke? Right? –  Jeroen Jacobs Apr 8 '11 at 8:17
add comment

3 Answers

You deleted the root directory, which is the base of your system. This destroys your system and removes all the files you need to run your server. You will need to reinstall and restore from backup.

share|improve this answer
    
So,all my files inside in server are now deleted? Right? Or just a root directory? Tnx –  user77591 Apr 7 '11 at 20:34
    
ALL of them sorry. –  Chopper3 Apr 8 '11 at 7:27
add comment

Congratulations! You successfully removed your server-root. You can start rebuilding your server from scratch or restore your backup.

Once you get your server back up and running, run this command to prevent you from doing it ever again

echo "alias rm=rm -i" >> ~/.bashrc && source ~/.bashrc
share|improve this answer
add comment

Your files are gone. You should contact support for the VPS hosting company you use and get them to help reinstall your VPS. There is a very slim chance they may have a backup of your files but it seems unlikely.

Now you've learned the hard way, you should investigate some backup solutions. The easiest is to just use an FTP client like filezilla to copy the files to your local system.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.