How often are apache logs deleted by CPanel?

albatroz

Well-Known Member
Mar 6, 2003
401
6
168
Virtual Orbis / Peru
cPanel Access Level
Root Administrator
Twitter
I have the impression that everyday (well everynight) after awstats excutes its tasks
the Apache log files of each website are deleted. Am I right?
I ask because I need to track the defacement of a website and it seems like my R1Soft backup
rules are not including the backup of the log files.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
If Delete each domain’s access logs after stats run, in Main >> Server Configuration >> Tweak Settings, is On, then the domains' logs, in /usr/local/apache/domlogs, are deleted after each stats run. The default for this setting is On.

The log rotation configuration mentioned by pwhjenny is for the cPanel logs, not the domains' Apache logs. They are totally separate, not related.