Page 1 of 3
AWstats broken
Posted: Fri Feb 29, 2008 10:49 am
by Highland
I updated to the latest ART release of awstats and no stat pages were updated last night. Logs are full of this
Feb 29 04:03:11 server1 statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -confiigdir=/usr/local/psa/etc/awstats -config=domain.com-http -dir=/var/www/vhosts/domain.com/statistics/webstat/current
Any ideas?
Posted: Fri Feb 29, 2008 4:51 pm
by Highland
So I've got two things now...
First, the path being called seems to be wrong. It's calling
Code: Select all
/usr/share/awstats/awstats_buildstaticpages.pl
And the actual path is
Code: Select all
/usr/bin/awstats_buildstaticpages.pl
And the path to AWStats is wrong
Code: Select all
/var/www/cgi-bin/awstats/awstats.pl
Actual
I've added symbolic links to fix that up.
The second problem is that I fixed the paths and ran it manually and I still don't get the missing data from yesterday. Is this due to the fact that the previous day's logs are zipped? Is it due to the conf files still being 6.6?
Also, all the images for awstats graphs now seem to be missing.
Posted: Sat Mar 01, 2008 10:23 am
by Highland
I've figured out that if I add -update to my command line run that seems to do it. I get fresh stats that way (although I can't seem to rebuild the missing last 2 days).
I've tried downgrading but no good. Without -upgrade in the command, it won't do anything now. How do I get this fixed? I can't manually run this for 150 domains and no stats were generated last night. I've been searching for a while now and I can't tell what cron job runs this so I can modify it to use -update.
Posted: Sat Mar 01, 2008 11:00 am
by Highland
Well I don't know what to think now. I ran the stat update script Plesk has and it seems to have worked. Will know for sure tomorrow but it's odd that all domains had a "no update" notice and 0 traffic (even in the dead of night we get some traffic on some sites still).
Still, the ART package needs to create the symlinks I outlined above to make it work. And the graph images are still broken.
Posted: Wed Mar 12, 2008 10:00 am
by Highland
One final symlink to make the whole thing work properly and bring back the images. Hopefull save someone some headache down the road.
#cd /var/www/html
#ln -s /var/www/awstats/icon awstats
Posted: Wed Mar 12, 2008 2:41 pm
by scott
Think you can make me a patch? The awstats src.rpm is here:
http://3es.atomicrocketturtle.com/packages/awstats/
Posted: Thu Mar 13, 2008 9:34 am
by Highland
Well I'm embarrassed. I thought it was an ART file. Turns out it was an rpmforge release of 6.7
If you want, I can modify his src.rpm to do this. Once I made the symlinks it worked fine with Plesk
Posted: Thu Mar 13, 2008 9:47 am
by scott
I'd let the RPMforge folks know, they have a very excellent mailinglist for this kind of thing.
awstats graphs and icons not showing
Posted: Thu Mar 13, 2008 8:01 pm
by bibliopegist
I am having no luck with the graph images or the logo showing on awstats, not that it bothers me much but I still would like the colors, I have plesk 8.3 on a fc6 1and1 server, it happened only when the icon folder was renamed awstats-icon.
The awstats.conf file points to the awstats-icon folder, I tried to change the command to point to icon, still no go. I copied the icon folder and renamed it awstats-icon, still nothing.
Furthermore, there is no trace of an awstats-icon folder in the awstats 6.6-1.fc6.art package, should it be there?
Right clicking on the missing logo indicates that the images is in the awstats-icon folder: /awstats-icon/other/awstats_logo6.png
One strange thing is that the outline of the graphs are visible in firefox but not in explorer, I don't think it has anything to do with the problem, just anecdotal.

Posted: Fri Mar 14, 2008 7:51 am
by scott
My package is based on the fedora design, if that helps at all.
Posted: Fri Mar 14, 2008 9:39 am
by Highland
Yeah, that's pretty much what the RF AWstats package did. All the awstats stuff was moved but symlinking fixed it. What you should do is find out where the images reside and where Plesk is looking for them and symlink the two. That's what symlinks are for, after all, is to support all these programs that look in different places for the same file (so much so that MS Vista now has them).
As a side note, I'm not sure what awstats.conf is for but Plesk doesn't use it. If you go into your conf/httpd.include file you'll see how Plesk creates the plesk-stat alias and other aliases.
thanks!
Posted: Fri Mar 14, 2008 11:11 pm
by bibliopegist
Thanks, it works, the awstat symlink was pointing to a dead end, I directed it to /usr/share/awstats/wwwroot/awstats-icon, I now see colors and icons, flashback to the 70's......
Great help, cannot thank you enough

prior months stats not showing
Posted: Wed Mar 19, 2008 9:03 am
by bibliopegist
The prior months stats are not showing as they should, they only show when called from the drop down menu for select period.
So the stats are there, they are just not parsed into the page, any idea where I should start looking to fix this?
Thanks
Posted: Wed Mar 19, 2008 3:13 pm
by Highland
Unfortunately Plesk only does month-by-month parsing. If you want to do a year-to-year the only option I know of off the top of my head is the 4psa stats program which will also generate PDFs of your awstats for you.
Posted: Wed Mar 19, 2008 10:56 pm
by bibliopegist
alas, no repo for my server
