AWSTATS Configuration

Discussion in 'Installation/Configuration' started by Spaetzle, May 21, 2023.

  1. Spaetzle

    Spaetzle Member HowtoForge Supporter

    Hello
    When upgrading an ISPConfig machine running Ubuntu 22.04, I noticed that AWStats created a script that seems to take over the jobs that were previously done by Cron. The script is '/etc/logrotate.d/httpd-prerotate/awstats' with the following content:
    Code:
    #!/bin/sh
    UPDATE_SCRIPT=/usr/share/awstats/tools/update.sh
    if [ -x $UPDATE_SCRIPT ]
    then
      su -s /bin/sh -l -c $UPDATE_SCRIPT www-data
    fi
    
    Should the script be left as it is or should it be commented out as indicated in the Perfect Server Howto (for 20.04) for the cron area?

    Greetings
    Bernd
     
  2. fanto666

    fanto666 Member

    Just for evidence, setting AWSTATS_ENABLE_CRONTABS=no in /etc/default/awstats disables that script.
    And it's debian/ubuntu way of handling this.
     

Share This Page