Gentoo Archives: gentoo-user

From: Jason Carson <jay@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] awstats
Date: Mon, 10 Sep 2007 08:49:57
Message-Id: 44305.66.11.182.5.1189413265.squirrel@canuckster.org
In Reply to: Re: [gentoo-user] awstats by Neil Bothwick
1 > Hello Jason Carson,
2 >
3 >> I have the same permissions. I also have awstats.pl in two locations...
4 >>
5 >> 1)/var/www/localhost/cgi-bin/awstats.pl
6 >> 2)/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl
7 >>
8 >> I think the second one is what matters,
9 >
10 > You should be using the first one, read the webapp-config man page, or
11 > http://dev.gentoo.org/~rl03/webapp-config.html if you don't have
12 > webapp-config installed, for an explanation.
13 >
14 >
15 > --
16 > Neil Bothwick
17 >
18 > Politically Incorrect -- and damn proud of it!
19 >
20 yeah, I did the following...
21
22 webapp-config -I -h localhost -d awstats awstats 6.5-r1
23
24 and it worked, it told be to add the following to my apache config which I
25 did ...
26
27 #####################################################################
28 Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"
29
30 Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"
31
32 Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"
33
34 ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"
35
36 ScriptAlias /awstats
37 "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
38
39 ScriptAlias /awstats.pl
40 "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
41
42 <Directory "/usr/share/webapps/awstats/6.5-r1/htdocs">
43 Options None
44 AllowOverride None
45 <IfModule mod_access.c>
46 Order allow,deny
47 Allow from all
48 </IfModule>
49 </Directory>
50
51 <Directory "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin">
52 Options ExecCGI
53 AllowOverride None
54 <IfModule mod_access.c>
55 Order allow,deny
56 Allow from all
57 </IfModule>
58 </Directory>
59 ##################################################################
60
61 These apache directives show /usr/share/webapps/awstats/... which is why I
62 thought the "2)" was more important.
63
64 Anyway, I still get the following error when I try and access my stats in
65 my web browser...
66
67 "Forbidden
68
69 You don't have permission to access /awstats/awstats.pl on this server."
70
71
72 --
73 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] awstats Naga <nagatoro@×××××.com>