• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1234
  • Last Modified:

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

  • 4
  • 2
1 Solution
Have you reviewed the site : http://awstats.sourceforge.net/docs/awstats_setup.html#BUILD_UPDATE

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 awstats.pl -config=<mysite>.com -update
Can't open perl script "awstats.pl": 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/awstats.pl -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

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

Once you have done this you can run the command /var/www/awstats.pl -config=domain.com -update

Once you have done this your should be able to update the stats of your site.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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
http://www.mysite.com/awstats/awstats.pl?config=mysite.com -update

I receive this message.

Error: Couldn't open config file "awstats.mysite.com -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/awstats.pl?config=mysite
- Did you create your config file 'awstats.my site -update.conf' ?
If not, you can run "awstats_configure.pl" 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
HekkroAuthor 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="
Robert SilverCommented:
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!


Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now