Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have just installed Awstats (in sles9.1) and my awstats is not updating. I get this at the top of the page. Last Update: Never updated (See 'Build/Update' on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Location
    Sydney, Australia
    Posts
    42

    awstats


    Hi,

    I have just installed Awstats (in sles9.1) and my awstats is not updating. I get this at the top of the page.

    Last Update: Never updated (See 'Build/Update' on awstats_setup.html page)

    should i wait for 24 hours for the log to get updated ? or should i run cron or anything to get the logs updated ?

  2. #2
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    Awstats uses a cronjob to update the statisticspage. I run it every 30 minutes.
    I\'m so tired .....
    #200472

  3. #3
    Just Joined!
    Join Date
    Sep 2004
    Location
    Sydney, Australia
    Posts
    42
    Can you give me the cron script so i can also run it every 30 mins.

    If i click on Update now' near never updated i get this error :

    Error: Couldn't open server log file "/var/log/httpd/awstats.log" : No such file or directory

    Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
    See AWStats documentation in 'docs' directory for informations on how to setup awstats.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    Code:
    #!/bin/sh
    /path/to/awstats.pl -config=<your-config-name> -update
    When putting this to cron, the statistics will be updated on fixed intervals. You can do it dynamicly, but the user the webserver runs under will need write rights on the dir the files are created in.

    I prefer the cron method as root, because that way you could protect the dir the files are created in for writing done by the webserver user.

    The error means awstats can't find your webserver logfiles. Maybe you should read the documentation which was provided with your awstats first. My guess is that wou will need to (re)configure your awstats installation.
    I\'m so tired .....
    #200472

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •