These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for help with awstats on the new forum.
i have several issues with awstats on each site [ol] [li]there seams to be a permission issue because none of the images show in the bar charts and when i view the image i get a forbidden error [code:1]Forbidden You don't have permission to access /awstatsicons/other/vp.png on this server.[/code:1] [/li] [li]there is also an issue with the URL When I visit www.mysite.com/awstats i get this error [code:1] Forbidden You don't have permission to access /awstats/ on this server. NOYB Server at www.mysite.org Port 80 [/code:1] [/li] [li]the stats dont update on the schedule[/li] [/ol]
I have tried to put an .htaccess file in the /awstats folder
and that did not work
i tried to put an index.html file with a link to the awstats.pl and that did not work, in fact the .html file was a 404 error..
i'm at loss here... anyone got a clue how i can make the www.tld.com/awstats work?
every site (even newly created ones)
do not allow for the visitor to view the stats unless then neter the full path.
<b>don't work</b>
www.my-site.com/awstats
[code:1]
Forbidden
You don't have permission to access /awstats/ on this server.
[/code:1]
i've created an index.html file under the /public_html/awstats/index.html and i get a 404
<b>does work get 404</b>
www.my-site.com/awstats/index.html
[code:1]Not Found
The requested URL /awstats/index.html was not found on this server.[/code:1]
<b>does work</b>
www.my-site.com/awstats/awstats.pl
sp now what?
<b>How do i get the following to show the stats page?</b>
www.my-site.com/awstats/
<div class='quote'>Any reason you don't like viewing AWStats from within Virtualmin?</div>
My hosting clients do NOT want to go through Virtualmin to see their stats.
They are used to viewing www.site.com/awstats
i found 1 fix for the broken images
[code:1]
change this line
#DirIcons="/awstatsicons"
to
<b>DirIcons="/awstats-icon"</b>
[/code:1]
but that does not solve the URL issue
Looks like this will do the trick:
ScriptAlias /awstats /home/domain/cgi-bin/awstats.pl
Instead of the usual:
ScriptAlias/awstats /home/domain/cgi-bin/
It could also be done with a Redirect or a Proxy rule, I think.
--
Check out the forum guidelines!
Sorry,
I'm a newbie and already thought that my answer would be to easy.
At least I now discovered that there are two analyzers.
<div class='quote'>At least I now discovered that there are two analyzers.</div>
I prefer AwStats over weblizer...
I had this same problem with the bar charts not being displayed. I am using CENTOS 6.4 and Virtualmin 4.02.gpl
when accessing the awstats from the URL www.whateverdomain.com/awstats/awstats.pl the page would display but all the images that made up the bar chart colored lines would not.
As root, Edit: /etc/httpd/conf.d/awstats.conf
and comment out the line: Alias /awstatsicons "/usr/share/awstats/wwwroot/icon"
just put a # in front of that line to comment it out.
Then restart your web server and you are good to go.
I dunno. What's in the error_log?
--
Check out the forum guidelines!
here is the error log:
[code:1]
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/other/he.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/other/hx.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/os/unknown.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/os/win.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/os/mac.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/os/linux.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/unknown.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/msie.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/firefox.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/mozilla.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 08:55:15 2007] [error] [client 111.111.111.111] client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/netscape.png, referer: http://www.my-site.org/awstats/awstats.pl?month=12&year=2007&out...
[Thu Dec 13 09:56:40 2007] [error] [client 111.111.111.111] attempt to invoke directory as script: /home/my-site/cgi-bin/
[/code:1]
These errors could be because Apache is configured not to follow symlinks. Virtualmin sets up an awstats link in /public_html so that these images can be displayed.
I'm not sure about the other problems...the last one is weird, and one I've never seen. Not sure why /cgi-bin/ would be invoked as a script. Are you sure you don't have some pre-existing configuration that might be mixing badly with Virtualmin's awstats configuration?
--
Check out the forum guidelines!
This is a new server with a fresh install of Centos 5 and virtualmin pro.
there has been NO 'special' setup or pre-existing configuration
BUMP
I still am at a loss as to how i can make this work.
i've tried to edit the httpd.conf file directly and that has not worked....any help???
Oh, somehow I thought awstats didn't actually work. It actually looks like access to AWStats through Apache is a bit broken, currently (I've never used it that way--most folks get to it through the Virtualmin interface, in the Logs and Reports menu, which works fine). To get the behavior you're after, you'll want a RewriteRule, though the specifics aren't obvious to me at the moment--the images are broken in the current configuration even without complicating it with a redirect rule or alternate ScriptAlias, and so I need to figure out how to fix that.
Any reason you don't like viewing AWStats from within Virtualmin?
--
Check out the forum guidelines!
On my virtualmin-server the link is http://domain/stats in stead of http://domain/awstats.
RJB
<div class='quote'>On my virtualmin-server the link is http://domain/stats</div>
This is for WEBLIZER and NOT AwStats
Hey,
While I realize this thread is ancient, and most probably figured it out.
The problem with "awstatsicons" is easy to fix.
There is a file called:
/etc/httpd/conf.d/awstats.conf
Inside the file locate the section reading:
<Directory "/usr/share/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from 127.0.0.1
</Directory>
Change the following lines to suite your needs:
Order allow,deny
Allow from 127.0.0.1
Or simply comment them out.
Once this is complete, the stats will show the icons when going to:
http://www.mydomain.com/awstats/awstats.pl
Later folks!
-- Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist