DirectAdmin Support said:
The logs directly in /var/log/httpd are controlled by logrotate.
The logs in /var/log/httpd/domains are controlled by DA.
So... I have a log in /var/log/httpd/domains that is exceeding 2GB daily and causing Apache to malfunction (very high traffic site). How can I get this file to be rotated more often?
I've looked at this post:
http://www.directadmin.com/forum/showthread.php?s=&postid=78741#post78741
but I don't understand if the tally command referred to will also rotate this log.
Alternately, how can I get logrotate to deal with this particular file? I looked at the custom httpd.conf, and I can see where it sets the custom log directory, but it also says that any changes will be overwritten, so how do you change that? If I put that file in the directory above, would logrotate deal with it? And then how would i get logrotate to do it's thing more than once a day... would it have to be hourly? Or if i omit that line would it just not create that log?
Or any other suggestions for keeping the file from getting so big that it kills Apache.
BTW... I nuked webalizer long ago (webalizer = 0 in directadmin.conf) because it was running 24/7, but I didn't add anything about rotate in directadmin.conf, I'm assuming it defaults to true.
OK, any thoughts are greatly appreciated.
Rebecca