Cwppro - Huge log files in

Started by Orlox, November 18, 2020, 05:46:38 PM

Previous topic - Next topic

Orlox

Thank you. That worked with a little twining.

For the domlogs I enabled log rotate from cwp admin
->
File manager -> Logrotate manager -> Add new conf file
at filename I put
domlogs

As contents I used:

/usr/local/apache/domlogs/*.log {
    rotate 7
    daily
    missingok
    notifempty
    sharedscripts
    compress
    minsize 1048576
    delaycompress
    postrotate
/bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

After clicking save, I also run it once.

legija

Once everything start to work, I configure logs to /dev/null :D