Apache log rotation problems

Andras Kende andras at kende.com
Thu Jul 8 20:12:24 PDT 2004



-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Graham North
Sent: Thursday, July 08, 2004 9:32 PM
To: freebsd-questions at freebsd.org; Matthew Seaman
Cc: robert at irrelevant.com; tim at typhoon.techvalley.ca; Matthew Seaman
Subject: Apache log rotation problems

Hello all:

There has to be a simple fix to this problem - I am using newsyslog and cron
to rotate my Apache logfiles.    They get rotated and Apache keeps working
however after a log rotation takes place Apache will not longer log my
accesses.   It does continue to serve pages but I need to do an apachectl
restart in order for it to continue logging properly.

newsyslog.conf and crontab files are attached for reference.

Any help and suggestions greatly appreciated.
Regards,  Graham/


Hello,

Try something like this:

newsyslog.conf:
/var/log/httpd-access.log  644  2   *   @T00   B   /var/run/httpd.pid 30


More info:
http://www.freebsddiary.org/rotatelogs.php


Best regards,

Andras Kende
http://www.kende.com





More information about the freebsd-questions mailing list