150-awstats.inc.php (SOLVED)

Discussion in 'Installation/Configuration' started by Steffan, Jan 26, 2017.

  1. Steffan

    Steffan Member

    just noticed that the static awstats pages ar not being updates sids 13 januari.
    awstats is working the txt files are updated till today with yesterdays information.
    When looking at
    i see this:
    //$command = "$awstats_buildstaticpages_pl -update -config='$domain' -lang=".$conf['language']." -dir='$statsdir' -awstatsprog='$awstats_pl'";
    $command = "$awstats_buildstaticpages_pl -month='$awmonth' -year='$awyear' -update -config='$domain' -lang=".$conf['language']." -dir='$statsdir' -awstatsprog='$awstats_pl'";

    should the first one not being commend out?

    also noticed this script /etc/cron.hourly/awstats
    Why is that. It is linked to the yesterday stats so it only updates once a day
  2. Steffan

    Steffan Member

    the problem that i found (on my server) is this line
    if($awstats_pl != '' && $awstats_buildstaticpages_pl != '' && fileowner($awstats_pl) == 0 && fileowner($awstats_buildstaticpages_pl) == 0) {
    fileowner($awstats_pl) was owned by apache somehow.
    It is working again....

Share This Page