Rotation logs in CWP

Started by d2db, November 19, 2017, 06:02:07 PM

Previous topic - Next topic

d2db

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
}

Tinhtiennet

Thank you for giving me a script for apache / logs entries. What about the rotation problem in apache / domlogs?

studio4host

cwp is planning to have soon integration with stats/graphs then this functionality will also handle logs.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.