Gentoo Archives: gentoo-user

From: Stephen Wittig <nofx911@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] awstats
Date: Mon, 10 Sep 2007 18:18:10
Message-Id: f1c96f570709101057r14688f6es5713b2119a2157d4@mail.gmail.com
In Reply to: Re: [gentoo-user] awstats by Jason Carson
1 Try changing:
2 ScriptAlias /awstats
3 "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
4 ScriptAlias /awstats.pl
5 "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
6
7 To:
8 ScriptAlias /awstats "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin"
9
10 Also I specifically include:
11 AddHandler cgi-script .cgi
12 AddHandler cgi-script .pl
13
14 I don't know if this is required for awstats to work, but it does for
15 some other scripts.
16
17 Lastly, make sure that the data directory specified in the awstats
18 config file is writeable by the CGI script.
19
20 Last, check the apache error logs after trying to access the page and
21 let us know what they say.
22
23 -Best of Luck, Stephen
24
25 On 9/9/07, Jason Carson <jay@××××××××××.org> wrote:
26 > > On Sun, 9 Sep 2007 21:04:02 -0400 (EDT)
27 > > Jason Carson wrote:
28 > >
29 > >> I've installed awstats on my server but when I go to access them from
30 > >> http://canuckster.org/awstats/awstats.pl it says...
31 > >>
32 > >> "Forbidden
33 > >> You don't have permission to access /awstats/awstats.pl on this
34 > >> server"
35 > >>
36 > >> What do I do?
37 > >
38 > > Hi Jay,
39 > >
40 > > The obvious questions:
41 > >
42 > > What are the permissions?
43 > > Have you checked the apache logs for messages?
44 > >
45 > > I've got it running on a non-gentoo machine. It's
46 > > in /var/www/mydomain/cgi-bin and permitted as:
47 > >
48 > > -rwxr-xr-x 1 root root 527395 Feb 25 2005 awstats.pl* [
49 > >
50 > > HTH,
51 > >
52 > > David
53 > >
54 > I have the same permissions. I also have awstats.pl in two locations...
55 >
56 > 1)/var/www/localhost/cgi-bin/awstats.pl
57 > 2)/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl
58 >
59 > I think the second one is what matters, here is part of my
60 > /etc/apache2/vhosts.d/00_default_vhost.conf (apache 2.2.6 released today)
61 >
62 > Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"
63 > Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"
64 > Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"
65 > ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"
66 > ScriptAlias /awstats
67 > "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
68 > ScriptAlias /awstats.pl
69 > "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
70 >
71 > <Directory "/usr/share/webapps/awstats/6.5-r1/htdocs">
72 > Options None
73 > AllowOverride None
74 > <IfModule mod_access.c>
75 > Order allow,deny
76 > Allow from all
77 > </IfModule>
78 > </Directory>
79 >
80 > <Directory "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin">
81 > Options ExecCGI
82 > AllowOverride None
83 > <IfModule mod_access.c>
84 > Order allow,deny
85 > Allow from all
86 > </IfModule>
87 > </Directory>
88 >
89 >
90 >
91 >
92 > --
93 > gentoo-user@g.o mailing list
94 >
95 >
96 --
97 gentoo-user@g.o mailing list