Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Tyrone Miles on December 14, 2002, 08:22:27 PM

Title: Logs
Post by: Tyrone Miles on December 14, 2002, 08:22:27 PM
I want to delete all my webserver logs for this past year, what is the most simple way.

I already have them backed up.
Title: Re: Logs
Post by: Nathan Fowler on December 14, 2002, 08:48:33 PM
From Console:

/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd-admin stop
rm -rf /var/log/httpd/*
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/httpd-admin start

Hope this helped,
Nathan
Title: Re: Logs
Post by: Tyrone Miles on December 14, 2002, 11:20:49 PM
Thanks A LOT!