Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1


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.