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

I'm very new to apache. We wish to rotate the log files in daily basis. We installed the apache2 using :

sudo apt-get install apache2

in Ubuntu. Are there any ways to do it using logrotate ?

share|improve this question


In particular, read

But yes, it shouldn't be at all difficult to use logrotate to rotate your apache log files.

Your httpd.conf and associated files will specify the locations of the log files, you can then use this information to configure logrotate

Don't forget to get Apache to restart logging, e.g. use a graceful restart (apachectl graceful or equivalent)

share|improve this answer

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.