Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.….. 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
I can't comment your post, so which filesystem have you got? If it's ext4/3 than extundelete, see – Ency Dec 19 '10 at 13:55

Your Answer


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.