public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] awstats
@ 2007-09-10  1:04 Jason Carson
  2007-09-10  2:23 ` David Relson
  0 siblings, 1 reply; 8+ messages in thread
From: Jason Carson @ 2007-09-10  1:04 UTC (permalink / raw
  To: gentoo-user

I've installed awstats on my server but when I go to access them from
http://canuckster.org/awstats/awstats.pl it says...

"Forbidden
You don't have permission to access /awstats/awstats.pl on this server"

What do I do?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  1:04 [gentoo-user] awstats Jason Carson
@ 2007-09-10  2:23 ` David Relson
  2007-09-10  4:16   ` Jason Carson
  0 siblings, 1 reply; 8+ messages in thread
From: David Relson @ 2007-09-10  2:23 UTC (permalink / raw
  To: gentoo-user; +Cc: jay

On Sun, 9 Sep 2007 21:04:02 -0400 (EDT)
Jason Carson wrote:

> I've installed awstats on my server but when I go to access them from
> http://canuckster.org/awstats/awstats.pl it says...
> 
> "Forbidden
> You don't have permission to access /awstats/awstats.pl on this
> server"
> 
> What do I do?

Hi Jay,

The obvious questions:

  What are the permissions?  
  Have you checked the apache logs for messages?

I've got it running on a non-gentoo machine.  It's
in /var/www/mydomain/cgi-bin and permitted as: 

-rwxr-xr-x  1 root root 527395 Feb 25  2005 awstats.pl* [

HTH,

David
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  2:23 ` David Relson
@ 2007-09-10  4:16   ` Jason Carson
  2007-09-10  7:55     ` Neil Bothwick
  2007-09-10 17:57     ` Stephen Wittig
  0 siblings, 2 replies; 8+ messages in thread
From: Jason Carson @ 2007-09-10  4:16 UTC (permalink / raw
  To: gentoo-user

> On Sun, 9 Sep 2007 21:04:02 -0400 (EDT)
> Jason Carson wrote:
>
>> I've installed awstats on my server but when I go to access them from
>> http://canuckster.org/awstats/awstats.pl it says...
>>
>> "Forbidden
>> You don't have permission to access /awstats/awstats.pl on this
>> server"
>>
>> What do I do?
>
> Hi Jay,
>
> The obvious questions:
>
>   What are the permissions?
>   Have you checked the apache logs for messages?
>
> I've got it running on a non-gentoo machine.  It's
> in /var/www/mydomain/cgi-bin and permitted as:
>
> -rwxr-xr-x  1 root root 527395 Feb 25  2005 awstats.pl* [
>
> HTH,
>
> David
>
I have the same permissions. I also have awstats.pl in two locations...

1)/var/www/localhost/cgi-bin/awstats.pl
2)/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl

I think the second one is what matters, here is part of my
/etc/apache2/vhosts.d/00_default_vhost.conf (apache 2.2.6 released today)

Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"
Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"
Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"
ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"
ScriptAlias /awstats
"/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
ScriptAlias /awstats.pl
"/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"

<Directory "/usr/share/webapps/awstats/6.5-r1/htdocs">
    Options None
    AllowOverride None
    <IfModule mod_access.c>
        Order allow,deny
        Allow from all
    </IfModule>
</Directory>

<Directory "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin">
    Options ExecCGI
    AllowOverride None
    <IfModule mod_access.c>
        Order allow,deny
        Allow from all
    </IfModule>
</Directory>




-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  4:16   ` Jason Carson
@ 2007-09-10  7:55     ` Neil Bothwick
  2007-09-10  8:34       ` Jason Carson
  2007-09-10 17:57     ` Stephen Wittig
  1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2007-09-10  7:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

Hello Jason Carson,

> I have the same permissions. I also have awstats.pl in two locations...
> 
> 1)/var/www/localhost/cgi-bin/awstats.pl
> 2)/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl
> 
> I think the second one is what matters, 

You should be using the first one, read the webapp-config man page, or 
http://dev.gentoo.org/~rl03/webapp-config.html if you don't have
webapp-config installed, for an explanation.


-- 
Neil Bothwick

Politically Incorrect -- and damn proud of it!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  7:55     ` Neil Bothwick
@ 2007-09-10  8:34       ` Jason Carson
  2007-09-10  9:51         ` Naga
  0 siblings, 1 reply; 8+ messages in thread
From: Jason Carson @ 2007-09-10  8:34 UTC (permalink / raw
  To: gentoo-user

> Hello Jason Carson,
>
>> I have the same permissions. I also have awstats.pl in two locations...
>>
>> 1)/var/www/localhost/cgi-bin/awstats.pl
>> 2)/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl
>>
>> I think the second one is what matters,
>
> You should be using the first one, read the webapp-config man page, or
> http://dev.gentoo.org/~rl03/webapp-config.html if you don't have
> webapp-config installed, for an explanation.
>
>
> --
> Neil Bothwick
>
> Politically Incorrect -- and damn proud of it!
>
yeah, I did the following...

webapp-config -I -h localhost -d awstats awstats 6.5-r1

and it worked, it told be to add the following to my apache config which I
did ...

#####################################################################
Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"

Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"

Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"

ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"

ScriptAlias /awstats
"/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"

ScriptAlias /awstats.pl
"/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"

<Directory "/usr/share/webapps/awstats/6.5-r1/htdocs">
    Options None
    AllowOverride None
    <IfModule mod_access.c>
        Order allow,deny
        Allow from all
    </IfModule>
</Directory>

<Directory "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin">
    Options ExecCGI
    AllowOverride None
    <IfModule mod_access.c>
        Order allow,deny
        Allow from all
    </IfModule>
</Directory>
##################################################################

These apache directives show /usr/share/webapps/awstats/... which is why I
thought the "2)" was more important.

Anyway, I still get the following error when I try and access my stats in
my web browser...

"Forbidden

You don't have permission to access /awstats/awstats.pl on this server."


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  8:34       ` Jason Carson
@ 2007-09-10  9:51         ` Naga
  2007-09-10 16:15           ` Dan Farrell
  0 siblings, 1 reply; 8+ messages in thread
From: Naga @ 2007-09-10  9:51 UTC (permalink / raw
  To: gentoo-user

On Monday 10 September 2007 10:34:25 Jason Carson wrote:
[...]
>     <IfModule mod_access.c>
[...]
> You don't have permission to access /awstats/awstats.pl on this server."

Have you checked to see if mod_access.c is in apache-2.2.6?
If I'm not wrong the access modules have been reworked.

-- 
Naga
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  9:51         ` Naga
@ 2007-09-10 16:15           ` Dan Farrell
  0 siblings, 0 replies; 8+ messages in thread
From: Dan Farrell @ 2007-09-10 16:15 UTC (permalink / raw
  To: gentoo-user

On Mon, 10 Sep 2007 11:51:44 +0200
Naga <nagatoro@gmail.com> wrote:

> Have you checked to see if mod_access.c is in apache-2.2.6?
> If I'm not wrong the access modules have been reworked.

They sure have.  
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] awstats
  2007-09-10  4:16   ` Jason Carson
  2007-09-10  7:55     ` Neil Bothwick
@ 2007-09-10 17:57     ` Stephen Wittig
  1 sibling, 0 replies; 8+ messages in thread
From: Stephen Wittig @ 2007-09-10 17:57 UTC (permalink / raw
  To: gentoo-user

Try changing:
ScriptAlias /awstats
"/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
ScriptAlias /awstats.pl
"/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"

To:
ScriptAlias /awstats "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin"

Also I specifically include:
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

I don't know if this is required for awstats to work, but it does for
some other scripts.

Lastly, make sure that the data directory specified in the awstats
config file is writeable by the CGI script.

Last, check the apache error logs after trying to access the page and
let us know what they say.

-Best of Luck, Stephen

On 9/9/07, Jason Carson <jay@canuckster.org> wrote:
> > On Sun, 9 Sep 2007 21:04:02 -0400 (EDT)
> > Jason Carson wrote:
> >
> >> I've installed awstats on my server but when I go to access them from
> >> http://canuckster.org/awstats/awstats.pl it says...
> >>
> >> "Forbidden
> >> You don't have permission to access /awstats/awstats.pl on this
> >> server"
> >>
> >> What do I do?
> >
> > Hi Jay,
> >
> > The obvious questions:
> >
> >   What are the permissions?
> >   Have you checked the apache logs for messages?
> >
> > I've got it running on a non-gentoo machine.  It's
> > in /var/www/mydomain/cgi-bin and permitted as:
> >
> > -rwxr-xr-x  1 root root 527395 Feb 25  2005 awstats.pl* [
> >
> > HTH,
> >
> > David
> >
> I have the same permissions. I also have awstats.pl in two locations...
>
> 1)/var/www/localhost/cgi-bin/awstats.pl
> 2)/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl
>
> I think the second one is what matters, here is part of my
> /etc/apache2/vhosts.d/00_default_vhost.conf (apache 2.2.6 released today)
>
> Alias /awstats/classes "/usr/share/webapps/awstats/6.5-r1/htdocs/classes/"
> Alias /awstats/css "/usr/share/webapps/awstats/6.5-r1/htdocs/css/"
> Alias /awstats/icons "/usr/share/webapps/awstats/6.5-r1/htdocs/icon/"
> ScriptAlias /awstats/ "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/"
> ScriptAlias /awstats
> "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
> ScriptAlias /awstats.pl
> "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl"
>
> <Directory "/usr/share/webapps/awstats/6.5-r1/htdocs">
>     Options None
>     AllowOverride None
>     <IfModule mod_access.c>
>         Order allow,deny
>         Allow from all
>     </IfModule>
> </Directory>
>
> <Directory "/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin">
>     Options ExecCGI
>     AllowOverride None
>     <IfModule mod_access.c>
>         Order allow,deny
>         Allow from all
>     </IfModule>
> </Directory>
>
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-10 18:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10  1:04 [gentoo-user] awstats Jason Carson
2007-09-10  2:23 ` David Relson
2007-09-10  4:16   ` Jason Carson
2007-09-10  7:55     ` Neil Bothwick
2007-09-10  8:34       ` Jason Carson
2007-09-10  9:51         ` Naga
2007-09-10 16:15           ` Dan Farrell
2007-09-10 17:57     ` Stephen Wittig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox