Managing Log Rotator webserver

Discussion in 'Feature Requests' started by fmapelli, Nov 10, 2014.

  1. fmapelli

    fmapelli New Member

    Good Morning,
    I had to increase the log rotator from 30 to 60 days, by modifying directly the "cron_daily.php" file, specifically the following lines:
    513 $month_ago = date('Ymd', time() - 86400 * 60);
    520 $datepart = date('Ym', time() - 86400 * 61 * 2);
    532 exec('cd /var/log/ispconfig/httpd/'.$tmp_hostname[0]."; find . -mtime +60 -name '*.log' | xargs rm > /dev/null 2> /dev/null");

    Is it possibile to include this parameter into the configuration (via web or file) for the next version instead of modifying the lines?

    Thanks
    Francesco
     

Share This Page