I use logrotate to loop through the logs daily...I generally only keep a
weeks worth or so due to size.  It'll automatically remove the old ones just
fine in the end.

Sean Wells
Network Administrator
Data Mosaics, Inc.
2406 S. Dishman Mica Rd.  Suite 6
Spokane Valley, WA  99206
866.904.DMSF (phone)
509.928.4236 (fax)
-----Original Message-----
From: david [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 08, 2005 1:01 PM
To: [email protected]
Subject: [gentoo-server]

What is the right way to clean apache2 logs?
/var/log/apache2/access_log and error_log point to
/usr/lib/apache2/logs/access_log and error_log
I have been cd /usr/lib/apache2/logs
rm access_log
touch access_log
chmod 666 access_log same for error_log
I could leave error_log alone because its not very big, I do it to
access_log because it is huge and webalizer complains.
Should root own these logs or apache?
-- 
[email protected] mailing list

-- 
[email protected] mailing list

Reply via email to