Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Apr 4 '13 at 14:57

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.