[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Logs
- Subject: Re: [cobalt-developers] Logs
- From: "[Can-Host Networks] Félix C.Courtemanche" <webmaster@xxxxxxxxxxxx>
- Date: Thu Jun 22 12:03:25 2000
your computer should check the logs and rotate them automaticall However, we
found that (on our system) the log rotation was not set right for the httpd
error log.
you have to telnet in your box, and do the following:
su
[enter the password]
cd /etc/logrotate.d
if you list that directory, you'll see all the logs rotation for every
sites, etc.
you want to fix the error log, so:
pico apache
find the lines looking like
/var/log/httpd/error_log {
missingok
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
and replace them with:
/var/log/httpd/error {
missingok
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
that is if your error log is named "error", else replace it with the name
you have.
Once that is done, the log will start rotating at 4h22 AM, you can check the
day after and you will have it compressed. Our error log was up to
something like 1gb and compressed into a nice 60mb error log.
;)
Enjoy!
-----------
[ Félix C.Courtemanche | Web Designer ]
[ Head Designer | Co-Admin ]
[ webmaster@xxxxxxxxxxxx ]
[ Can-Host Networks | http://can-host.com ]
-----Message d'origine-----
De : Mark Baker <mark@xxxxxxxxxxxxxxxxxx>
À : cobalt-developers@xxxxxxxxxxxxxxx <cobalt-developers@xxxxxxxxxxxxxxx>
Date : 22 juin, 2000 14:08
Objet : Re: [cobalt-developers] Logs
>Hi,
>
>I mean the logs in /home/logs/httpd/ (where the error log is)
>
>Thanks,
>
>Mark
>
>> If you mean /home/sites/sitexxx/logs/*
>> you can remove them if you dont need them anymore.
>> The 'Site Usage' stats are build on that logs. If you remove
>> that logs from may you will not see the may stats anymore.
>
>
>> > Most of the files in my HTTPD log folder are becoming huge! Can I
safely
>> > remove the contents or does the system do this automatically?
>
>
>
>_______________________________________________
>cobalt-developers mailing list
>cobalt-developers@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-developers
>