B BuuG New member Joined Mar 14, 2011 Messages 3 Mar 14, 2011 #1 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?
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?
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,449 Location www.poralix.com Mar 15, 2011 #2 Why do you want that? Do you have enough space in /var partition?
B BuuG New member Joined Mar 14, 2011 Messages 3 Mar 15, 2011 #3 Yes, the place enough, it can be done?
A ArticlesColumn New member Joined Mar 10, 2011 Messages 1 Mar 16, 2011 #4 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)]]
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)]]
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,449 Location www.poralix.com Mar 16, 2011 #5 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.
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.
B BuuG New member Joined Mar 14, 2011 Messages 3 Mar 16, 2011 #6 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
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
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,449 Location www.poralix.com Mar 16, 2011 #7 Forget about that. There is another better way to go: http://www.directadmin.com/features.php?id=507
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,449 Location www.poralix.com Mar 16, 2011 #8 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.
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.