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
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
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
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
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
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
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
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 ?
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
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
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
11 matches
Mail list logo