Dec 20, 2003
ok people. Tell me how do I delete log files couse they have grown really big. While logged in to cpanel i can DOWNLOAD log files from varoius account or from WHM for the main one. Since they are very very large I need to get rid of them... Tell me where are they placed, is it safe to delete them and how can i prevent this from ahppening again...


Well-Known Member
Nov 10, 2001
ON, Canada
The website log files are usually in /usr/local/apache/domlogs/. There are a few files associated with each account and there are various ways to empty them. Depending on how you do it, you may need to restart apache or else new log files won't be created.

Emptying log files is one of my WHM scripts that I hope I will have ready to be made public soon.

In WHM "Tweak Settings" you can cut down on the sizes by making sure the box for "Keep log files at the end of the month" is unchecked.