Jump to content

Recommended Posts

Posted

Is there a way to get the AWstats in cPanel to update at the same time? Ours seems to update at irregular times and I have to keep going into cPanel several times a day to check and see if it has updated so I can see our daily stats.

Posted

I would like to second BluegrassGardener's comments. I like the Awstats program, particularly for tracking day-to-day trends, but that function is pretty much useless when the update times vary as much as they have over the last week or so. It used to be that it was fairly regularly updated around 2 or 3 a.m. each night, but during the last week it's been updated as late as 7 p.m. (19:37 yesterday, and still no update today).

 

AWStats updates on its own, there isn't any way to control the update time.

 

Frankly, given the wide variety of update times, I got the impression that it was something that you all were manually triggering. Indeed, my reason for visiting the forum was to ask if it couldn't be set by a chron job so there would be some consistency in the update time. I decided to first do a search to see if anyone else had posted about the issue and found a TCH response to an earlier post (http://www.totalchoicehosting.com/forums/index.php?showtopic=7281&hl=awstats) that said:

 

AWStats will sometimes skip a day due to server loads.

 

That puzzles me, as the server load should typically be much lower at 2 or 3 a.m. than the 3 to 7 p.m. times it has been updating at in the last week.

 

Anyway, it is possible for me to use cPanel's chron job utility to set it to run at, say, 2 a.m.?

 

Thanks,

Oneida

http://www.eces.org/

Posted
I would like to second BluegrassGardener's comments. I like the Awstats program, particularly for tracking day-to-day trends, but that function is pretty much useless when the update times vary as much as they have over the last week or so. It used to be that it was fairly regularly updated around 2 or 3 a.m. each night, but during the last week it's been updated as late as 7 p.m. (19:37 yesterday, and still no update today).

It doesn't matter if AwStats runs at the same time every day except for the total hits at the top of the page.

 

The rest of the stats are date/time related. So if it didn't run for 3 days straight the next time it runs (provided the server wasn't down, or a backup restored) the stats would reflect the 3 prior days information correctly.

 

At least I've seen it work that way for my sites. :)

Posted

If you want to manually update your stats, here is what you do.

  • Find you awstats folder.(it's outside of publichtml in the temp directory)
  • You need to find and edit awstats.yoursite.com.conf
  • Change AllowToUpdateStatsFromBrowser=0 to AllowToUpdateStatsFromBrowser=1
  • Save and Set the permission for awstats.yoursite.com.conf to read only (chmod 444) to prevent server from over writing changes
  • Now when you open AwStats in cPanel there will be a link next to the date that says Update now

This can have an adverse effect on a server in a shared enviroment if you update several times a day. If you feel the need to use this option, please do so responsibly.

Posted
The rest of the stats are date/time related. So if it didn't run for 3 days straight the next time it runs (provided the server wasn't down, or a backup restored) the stats would reflect the 3 prior days information correctly.

 

At least I've seen it work that way for my sites.

 

I have another stat program (LogitPro) that runs off a javascript call and writes to its own database. After comparing them for curiosity's sake a few times right after I moved to TCH and finding that the day-to-day trends reported by LogitPro and Awstats seemed to track each other fairly well, I haven't usually bothered to compare them. However, I couldn't help noticing some large variations between them after Awstats started getting updated in the afternoon instead of early morning, which led me to believe that it was the variations in update time that were causing the variances. But I visited the Awstats website and see it is a log file analysis program, so you're right, it is time and date based. Curious.

 

Anyway, thanks for the great tip, TCH-Dick! I'll definitely give that try.

 

Oneida

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...