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 was cleaning up on one of my older servers when I realized that there was a lot of stuff in the "sites-available" config folder that wasn't being used, and since everything I needed and rarely modified was in the "sites-enabled" folder, I ran a "rm -rf *" on the "sites-available" folder...

BAD IDEA, it happens that the files in "sites-enabled" were actually symbolic links to the ones in "sites-available", the ones I just deleted.

The good news is that I haven't applied the changes or restarted apache yet, so all my sites are still up. Is there a way to recover these file from the currently running apache process ?

share|improve this question

2 Answers 2

Well, I know It is late, but there is a mod_info, which shall give you what you want, but it obviously has to be loaded first anyway :)

share|improve this answer
    
Since the files were deleted, looks like mod_info would not have worked either. www-01.ibm.com/software/webservers/httpservers/doc/v1326/manual/….. thanks though, now I know of 1 more apache module –  sjobe Jan 5 '11 at 16:17

Well, you can use tool like ddrescue, because I think there is no way how to get configuration from running apache, but I can be wrong.

share|improve this answer
2  
I can't comment your post, so which filesystem have you got? If it's ext4/3 than extundelete, see extundelete.sourceforge.net –  Ency Dec 19 '10 at 13:55

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.