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]
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?
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?
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.