Server Fault is a question and answer site for system and network administrators. 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

I rencently updated the config of my server to relocate the /var/www and /var/log in the /home folder, i also updated all my virtuals hosts to write the logs in the new /home/log folder.

But now the logs are written inside huge files, one for the error and one for the access and not in form of multiples archived files (like log.1.log, log.2.gz) like before.

How can i restore the log file splitting?

share|improve this question
up vote 2 down vote accepted

Since you have changed the location of the logs you should also update configs in logrotate cause it still looks for those logs in /var/log. I don't know what Linux distro you're using but they should be in /etc/logrotate.d/ directory

share|improve this answer
Thanks, do i need to restart the server after the update of the logrogate file? – DoesNotCompute Aug 27 '12 at 14:02
No : Have a look at your crontabs, that's where logrotate is usually triggered – user130370 Aug 27 '12 at 14:23

You need to change /etc/logrotate.d/apache2. See

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.