Awstats not updating

Posted on 2009-04-29
Last Modified: 2013-12-16
Hi guys,

I have been unable to make awstats to work properly and I have bee stuck for three days.

It is installed, the stats page is showing but is not updating at all...

I need some help

Question by:Hekkro
    LVL 13

    Expert Comment

    Have you reviewed the site :

    Are you getting any errors in the httpd error log?  Are you getting errors in syslog?

    Author Comment

    I don't see any error pertinent to awstats in var/log/httpd/error_log...where is syslog?

    Regarding the linked site, This is what I got when running that command
    # perl -config=<mysite>.com -update
    Can't open perl script "": No such file or directory

    but when done as:, (please find snippet)
    It runs the demo stats file

    Nor even when I click "Update Now" form the my stats page works.

    Any Idea, What can be wrong?
    # /var/www/awstats/ -config=<mysite>.com -update
    Create/Update database for config "/etc/awstats/awstats.<mysite>.com.conf" by AWStats version 6.9 (build 1.925)
    From data in log file "/var/log/httpd/access_log"...
    Phase 1 : First bypass old records, searching new record...
    Direct access after last parsed record (after line 82)
    Jumped lines in file: 82
     Found 82 already parsed records.
    Parsed lines in file: 0
     Found 0 dropped records,
     Found 0 corrupted records,
     Found 0 old records,
     Found 0 new qualified records.

    Open in new window

    LVL 13

    Expert Comment

    you need to have a look in /etc/awstats/ and make your own configuration, replacing with relevant details.

    Once you have done this you can run the command /var/www/ -update

    Once you have done this your should be able to update the stats of your site.

    Author Comment

    I have those files already

    And if you look and the previous snippet you will see the result of the -update command

    but If I do -update

    I receive this message.

    Error: Couldn't open config file " -update.conf" nor "awstats.conf" after searching in path "/var/www/awstats,/etc/awstats,/usr/local/etc/awstats,/etc,/etc/opt/awstats": No such file or directory

    - Did you use the correct URL ?
    Example: http://localhost/awstats/
    - Did you create your config file ' site -update.conf' ?
    If not, you can run "" from command line, or create it manually.

    Check config file, permissions and AWStats documentation (in 'docs' directory).

    Then Again I can't find information on how to create the ".... -update.conf" file

    Accepted Solution

    I fixed it.

    Some features are still missing, (keywords, GeoIP, Referrers and browsers) but the most important is showing....THE STATS

    I'll take care of the rest later


    I changed the "LogFile=" and the "LogFormat="
    LVL 2

    Expert Comment

    by:Robert Silver
    Can you please give us the values for those  settings? What file do they appear?

    More of an example makes your answer useful. What you wrote above is not too descriptive to understand the solution you found

    Author Comment

    Hi rssdds,

    After tinkering (a lot) I realized I had another log file in a different folder.


    Instead of pointing the LogFile= in your awstats config file to /var/log/httpd/access_log, i.e.

    I changed it to a different (newly found) log file.

    After that I had to change the Logformat= to 4, because it wasn't working properly with the default format

    That did the trick for me.

    I have not solve the rest, but is because I've been very busy and I haven't had the time to fiddle with.

    I hope this helps!


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now