Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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.

You must log in to answer this question.

Browse other questions tagged .