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 to

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 out until I

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

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 21`; do /bin/sleep 1; done); /usr/sbin/apachectl start) /dev/null 21 On Fri, Dec 09, 2005 at 01:45:51PM +0800, Uwe Dippel wrote: There are many posts on this problem; and

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

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

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 PROTECTED]:~] grep

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: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. [EMAIL PROTECTED]:~] grep

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

Apache Log Rotation - FAQ 10.16

2005-12-08 Thread Uwe Dippel
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 to close its old log files and open new ones. This is no longer