How to set access-logs files from /usr/local/apache/domlogs to be daily archived

nicolass

Member
Jan 22, 2012
5
0
51
cPanel Access Level
Website Owner
Hi,
can you please tell me hot to set access log files to be daily archived.

I have access-logs in:

/usr/local/apache/domlogs/WEBSITENAME/websitename.com


And I see that this access log keep log only for one day. How can I set that log files can be archived every day?

I look in /etc/logrotate.d and I dont see there file with name "apache".

How I can set this via cPanel or via shell, no matter
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
in cPanel-> Logs-> Raw Access Log:
"Archive logs in your home directory at the end of each stats run[ [every 24 hour(s)~]] "