Awstats not updating

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

Who is Participating?
HekkroConnect With a Mentor Author Commented:
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="
Have you reviewed the site :

Are you getting any errors in the httpd error log?  Are you getting errors in syslog?
HekkroAuthor Commented:
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

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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.
HekkroAuthor Commented:
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
Robert SilverSr. Software EngineerCommented:
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
HekkroAuthor Commented:
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!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.