apache logs

BuuG

New member
Joined
Mar 14, 2011
Messages
3
The situation is as follows:
In / var / log / httpd / domains / *. log - writes the log only for the current day. The question of how to make sure to write in a month?
 
go to cPanel interface, then Raw Access Log and uncheck this :)

Code:
Archive Logs in your home directory at the end of each stats run [ [every 24 hour(s)]]
 
Though, you did not answer, why do you want that... I'll point you to a direction.

Update directadmin cron file for that purposes.

Note, that might break webalizer/awstats updating and bandwidth counting.
 
If I correctly understood the need for a fix
10 0 * * * root echo 'action = tally & value = all'>> / usr / local / directadmin / data / task.kueue

but then the logs for the users will be updated according to the crown
 
Note, It's not a good decision to rotate logs once per month. They can really grow big, and your server will definitely slow down.
 
Back
Top