Submitted by clwheatley on Fri, 04/23/2010 - 13:00
I had been trying to allow direct access to awstats for users who prefer to look up their stats without having to first log in to their control panel.
Coming across a few posts I fixed the ScriptAlias /awstats directive for the domain which ended in "/cgi-bin" to "/cgi-bin/awstats.pl"
Going to mydomain.tld/awstats now prompts for username and password, but once authenticated, awstats still doesn't load, it just times out. I've looked in the domain's error logs as well as the Apache server error logs and the auth.log but none have any meaningful information.
Chris
Status:
Active
Comments
Submitted by JamieCameron on Fri, 04/23/2010 - 14:58 Comment #1
Could you give us an example AWstats URL that is failing? I'd like to try accessing it myself ..
Submitted by clwheatley on Wed, 04/28/2010 - 14:25 Comment #2
Since the awstats requires authentication, I'll email you if you don't mind and follow up here.
Chris
Submitted by JamieCameron on Wed, 04/28/2010 - 15:14 Comment #3
You're right, it hangs when loading that page..
Is the awstats.pl process using up a lot of CPU time on your system?
Submitted by clwheatley on Thu, 04/29/2010 - 13:02 Comment #4
No, it doesn't
Submitted by JamieCameron on Thu, 04/29/2010 - 14:17 Comment #5
So it looks like awstats.pl is hanging up on something, but it is hard to say what.
One way to check what it is doing is with a command like :
strace -p XXX
where XXX is the PID of the awstats.pl process. This will generate a bunch of output showing what system calls it is making..
Submitted by clwheatley on Mon, 05/03/2010 - 16:08 Comment #6
Jamie,
So, I was able to narrow down part of the problem and can get things to partially work. The first issue was my IDS blocking me :)
Now that that has been resolved there are a couple of sites which I can only connect by going to domain.tld/cgi-bin/awstats.pl rather than domain.tld/awstats.
For those sites this is what shows up in the Apache error log:
File does not exist: /home/domain.tld/www/awstats.pl, referer: http://domain.tld/awstats
This error always occurs 4 times in quick succession. The awstats.pl for these particular domains is the same as for other domains that do work:
#!/bin/sh
exec /usr/lib/cgi-bin/awstats.pl
Chris
Submitted by JamieCameron on Mon, 05/03/2010 - 16:20 Comment #7
The only path we really support is /awstats/awstats.pl , or /cgi-bin/awstats.pl . I'm not sure how /awstats alone would work on any of your domains ..