On Saturday 26 November 2005 08:38, Dan O'Connor wrote:
> In /etc/newsyslog.conf:
>
> /var/log/httpd-access.log 644 4 100 * J
> /var/run/httpd.pid 30
> /var/log/httpd-error.log 644 4 100 * J
> /var/run/httpd.pid 30
>
> This will signal apache to do
On Fri, Nov 25, 2005 at 04:38:14PM -0800, Dan O'Connor wrote:
> >Every time my httpd-access.log file is rotated I need to restart
> >Apache, otherwise it won't write into the new httpd-access.log file.
>
> In /etc/newsyslog.conf:
>
> /var/log/httpd-access.log 644 4 100 *
/var/log/httpd-access.log 644 4 100 * J
/var/run/httpd.pid 30
/var/log/httpd-error.log644 4 100 * J
/var/run/httpd.pid 30
Sorry about that word wrap...the "/var/run/httpd.pid 30" parts should
be on the same line as the line immediately above
On Fri, Nov 25, 2005 at 05:09:25PM +, Gerald de la Pascua wrote:
> loose entries? what in the window between the copy and the restart?
Yes.
> would the scheme you suggest work with individual logfiles for individual
> domains?
You can use the CustomLog directive per virtual server. You cou
Every time my httpd-access.log file is rotated I need to restart
Apache,
otherwise it won't write into the new httpd-access.log file.
In /etc/newsyslog.conf:
/var/log/httpd-access.log 644 4 100 * J
/var/run/httpd.pid 30
/var/log/httpd-error.log644 4
loose entries? what in the window between the copy and the restart?
would the scheme you suggest work with individual logfiles for individual
domains?
Gerald
On 11/25/05, Holger Kipp <[EMAIL PROTECTED]> wrote:
>
> On Fri, Nov 25, 2005 at 02:28:31PM +, Gerald de la Pascua wrote:
> > I usall
On Fri, Nov 25, 2005 at 02:28:31PM +, Gerald de la Pascua wrote:
> I usally just copy the file and then
>
> echo > /var/log/apache/httpd_log
>
> and apache doesn't seem to need to be restarted,
you will lose log entries. don't do that.
Regards,
Holger Kipp
alogis AG, Berlin
I usally just copy the file and then
echo > /var/log/apache/httpd_log
and apache doesn't seem to need to be restarted,
thanks
Gerald
On 11/25/05, Luke Hollins <[EMAIL PROTECTED]> wrote:
>
> Ladislav Bodnar wrote:
>
> >Hi,
> >
> >Every time my httpd-access.log file is rotated I need to restar
On Fri, Nov 25, 2005 at 08:45:43AM +0800, Ladislav Bodnar wrote:
> Hi,
>
> Every time my httpd-access.log file is rotated I need to restart Apache,
> otherwise it won't write into the new httpd-access.log file.
I usually use something like
CustomLog "|/usr/local/sbin/rotatelogs /var/log/apache/
Ladislav Bodnar wrote:
Hi,
Every time my httpd-access.log file is rotated I need to restart Apache,
otherwise it won't write into the new httpd-access.log file.
Is there a way for Apache (version 2.0.55 on FreeBSD 6.0) to write to the
new log file without the need to restart it? I restart i
On Fri, 25 Nov 2005, Ladislav Bodnar wrote:
Every time my httpd-access.log file is rotated I need to restart Apache,
otherwise it won't write into the new httpd-access.log file.
Use apache's logrotate if you never want to stop apache.
If you don't mind the restart you can use newsyslog to rol
Ladislav Bodnar wrote:
Hi,
Every time my httpd-access.log file is rotated I need to restart Apache,
otherwise it won't write into the new httpd-access.log file.
Is there a way for Apache (version 2.0.55 on FreeBSD 6.0) to write to the
new log file without the need to restart it? I restart i
My very non-orthodox way is to:-
1) copy the entire content of the log file out for storage, renamed
according to date.
2) cat /dev/null to the apache logfile
On 11/25/05, Philip Murray <[EMAIL PROTECTED]> wrote:
> On 25/11/2005, at 1:45 PM, Ladislav Bodnar wrote:
> > Is there a way for Apache
On 25/11/2005, at 1:45 PM, Ladislav Bodnar wrote:
Is there a way for Apache (version 2.0.55 on FreeBSD 6.0) to write
to the
new log file without the need to restart it? I restart it routinely
from a
cron job, but occasionally Apache fails to restart (or more
precisely, if
fails to shutdown
14 matches
Mail list logo