Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: d2db on November 19, 2017, 06:02:07 PM
-
I have a suggestion. Maybe you need to use rotation logs, because when many people visit a sites, the log file has a very large size.
My rotation configuration in "/etc/logrotate.d/cwp"
/usr/local/apache/logs/*_log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
-
Thank you for giving me a script for apache / logs entries. What about the rotation problem in apache / domlogs?
-
cwp is planning to have soon integration with stats/graphs then this functionality will also handle logs.