Delete stats logs daily

While something that most servers already have enabled from time to we encounter servers with a full domlogs directory so I figure it it worth mentioning. To check how large your apache domain logs are on a cPanel server run "du -hs /usr/local/apache/domlogs". If it is a bit higher then you want or you just want as much free space as possible login to WHM and click Tweak Settings. Within that menu will "Delete each domain's access logs after stats run" which you enable and click save. Now at the end of the stats run every night it will wipe out the directory so you should not have the logs grow very large, unless of course your server is very busy.

Powered by Drupal - Theme created by Danger4k