Super User is a question and answer site for computer enthusiasts and power users. 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

Is there a way to restore /var/log ? I don't really care about past logs I at least need the dir structure so programs can write to their logs.

For example I went to start apache and it failed because it could not write /var/log/apache2/error.log

I ran sudo mkdir /var/log/apache2 tried again and everything worked fine.

share|improve this question

migrated from Apr 4 '13 at 14:57

This question came from our site for professional and enthusiast programmers.

Your Answer


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

Browse other questions tagged or ask your own question.