Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Daniel Ouellet
Uwe Dippel wrote: Could you please share your preferred methods to rotate the /var/www/logs/, ? Not the best way I am sure, but for 7 years now on servers that run multiple virtual sites, all of them with their own logs and a few of them getting a few millions hits a day, I simply use cp ac

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Olivier Mehani
On Fri, 9 Dec 2005 14:09:03 +0100 Olivier Mehani <[EMAIL PROTECTED]> wrote: > The problem is that I remember having dug up this problem a little, > and all the solutions using cronolog were said to have problems when > booting. I think I will actually give this solution a real try right > now (;.

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Olivier Mehani
On Fri, 09 Dec 2005 13:33:30 +0100 Hans van Leeuwen <[EMAIL PROTECTED]> wrote: > CustomLog "|/usr/local/sbin/cronolog > -l /var/www/logs/access-hanz.nl /var/www/logs/old/access-hanz.nl.% > Y%m%d" combined > >>>But you are not using the default chrooted apache, are you ? > >>Yes, I am. >

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Hans van Leeuwen
Olivier Mehani wrote: On Fri, 09 Dec 2005 13:12:14 +0100 Hans van Leeuwen <[EMAIL PROTECTED]> wrote: CustomLog "|/usr/local/sbin/cronolog -l /var/www/logs/access-hanz.nl /var/www/logs/old/access-hanz.nl.%Y%m%d" combined But you are not using the default chrooted apache, are you ?

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Olivier Mehani
On Fri, 09 Dec 2005 13:12:14 +0100 Hans van Leeuwen <[EMAIL PROTECTED]> wrote: > >>CustomLog "|/usr/local/sbin/cronolog -l /var/www/logs/access-hanz.nl > >>/var/www/logs/old/access-hanz.nl.%Y%m%d" combined > >But you are not using the default chrooted apache, are you ? > Yes, I am. > [EMAIL PROTECT

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Hans van Leeuwen
Olivier Mehani wrote: On Fri, 09 Dec 2005 11:11:23 +0100 Hans van Leeuwen <[EMAIL PROTECTED]> wrote: Could you please share your preferred methods to rotate the /var/www/logs/, ? I had the same problem, and solved it by using cronolog. From my httpd.conf: CustomLog "|/usr/local/sbi

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Olivier Mehani
On Fri, 09 Dec 2005 11:11:23 +0100 Hans van Leeuwen <[EMAIL PROTECTED]> wrote: > >Could you please share your preferred methods to rotate the > >/var/www/logs/, ? > I had the same problem, and solved it by using cronolog. > > From my httpd.conf: > > CustomLog "|/usr/local/sbin/cronolog -l /var/www

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Egbert Krook
We're using the following in our newsyslog.conf file: "(/usr/sbin/apachectl stop; (while `/usr/bin/pgrep httpd > /dev/null 2>&1`; do /bin/sleep 1; done); /usr/sbin/apachectl start) > /dev/null 2>&1" On Fri, Dec 09, 2005 at 01:45:51PM +0800, Uwe Dippel wrote: > There are many posts on this proble

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Hans van Leeuwen
Uwe Dippel wrote: Could you please share your preferred methods to rotate the /var/www/logs/, ? I had the same problem, and solved it by using cronolog. This way you don't have to restart apache. From my httpd.conf: CustomLog "|/usr/local/sbin/cronolog -l /var/www/logs/access-hanz.nl /var/

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread knitti
On 12/9/05, Uwe Dippel <[EMAIL PROTECTED]> wrote: > # apachectl stop && apachectl start > > This is all I get here: > # apachectl stop && > /usr/sbin/apachectl stop: httpd stopped > /usr/sbin/apachectl start: httpd (pid 18132) already running > > In the end, it doesn't restart; leaving the users ou

Re: Apache Log Rotation - FAQ 10.16

2005-12-09 Thread Joachim Schipper
On Fri, Dec 09, 2005 at 01:45:51PM +0800, Uwe Dippel wrote: > There are many posts on this problem; and the reason is understood. > > To me, the FAQ 10.16 seems wrong: > > Log Rotation: Normally, logs are rotated by renaming the old files, > then sending httpd(8) a SIGUSR1 signal to cause Apache