help with awstats

18 posts / 0 new
Last post
#1 Tue, 12/11/2007 - 15:57
nhsitehost

help with awstats

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]

Wed, 12/12/2007 - 05:43
nhsitehost

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?

Fri, 12/14/2007 - 07:31 (Reply to #2)
nhsitehost

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/

Fri, 12/21/2007 - 14:28 (Reply to #3)
nhsitehost

<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=&quot;/awstatsicons&quot;
to
<b>DirIcons=&quot;/awstats-icon&quot;</b>
[/code:1]

but that does not solve the URL issue

Fri, 01/04/2008 - 23:08 (Reply to #4)
Joe
Joe's picture

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!

Mon, 12/24/2007 - 12:19 (Reply to #5)
robertjan

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.

Wed, 12/26/2007 - 06:50 (Reply to #6)
nhsitehost

<div class='quote'>At least I now discovered that there are two analyzers.</div>

I prefer AwStats over weblizer...

Sat, 01/03/2015 - 04:44 (Reply to #7)
pfregs

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.

Wed, 12/12/2007 - 15:12
Joe
Joe's picture

I dunno. What's in the error_log?

--

Check out the forum guidelines!

Thu, 12/13/2007 - 05:00
nhsitehost

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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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&amp;year=2007&amp;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]

Thu, 12/13/2007 - 14:44 (Reply to #10)
Joe
Joe's picture

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!

Fri, 12/14/2007 - 07:26 (Reply to #11)
nhsitehost

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

Tue, 12/18/2007 - 15:08
nhsitehost

BUMP

Fri, 12/21/2007 - 02:10 (Reply to #13)
nhsitehost

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

Fri, 12/21/2007 - 14:21
Joe
Joe's picture

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!

Mon, 12/24/2007 - 07:22
robertjan

On my virtualmin-server the link is http://domain/stats in stead of http://domain/awstats.

RJB

Mon, 12/24/2007 - 08:22 (Reply to #16)
nhsitehost

<div class='quote'>On my virtualmin-server the link is http://domain/stats</div>

This is for WEBLIZER and NOT AwStats

Wed, 09/23/2009 - 12:46
tpnsolutions
tpnsolutions's picture

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
Topic locked