Gentoo Forums
Gentoo Forums
Quick Search: in
awstats permission denied (SOLVED)
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
EvilEye
l33t
l33t


Joined: 06 Aug 2003
Posts: 623
Location: Toronto

PostPosted: Wed Sep 12, 2007 7:44 pm    Post subject: awstats permission denied (SOLVED) Reply with quote

Greetings,

I have installed awstats but when I try to access it (http://canuckster.org/awstats/awstats.pl) I get the following message...

Quote:
Forbidden

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


Here is the relevant part of my apache 2.2.6 config...

Quote:
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>


What do I do to fix this?


Last edited by EvilEye on Thu Sep 27, 2007 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 5930
Location: Melbourne, Australia

PostPosted: Wed Sep 12, 2007 8:49 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Networking & Security.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
EvilEye
l33t
l33t


Joined: 06 Aug 2003
Posts: 623
Location: Toronto

PostPosted: Thu Sep 13, 2007 1:21 am    Post subject: Reply with quote

I tried changing the permissions on the awstats.pl file but that didn't work. Anyone have any ideas as to what I am doing wrong?
Back to top
View user's profile Send private message
nizar
Apprentice
Apprentice


Joined: 19 Dec 2003
Posts: 256
Location: localhost

PostPosted: Thu Sep 27, 2007 4:40 pm    Post subject: Reply with quote

EvilEye wrote:
I tried changing the permissions on the awstats.pl file but that didn't work. Anyone have any ideas as to what I am doing wrong?


Look at http://forums.gentoo.org/viewtopic-t-581447-highlight-apache+awstats.html
Back to top
View user's profile Send private message
infinite1der
n00b
n00b


Joined: 31 Jan 2006
Posts: 52
Location: Atlanta, GA

PostPosted: Thu Sep 27, 2007 6:39 pm    Post subject: Reply with quote

EvilEye wrote:
I tried changing the permissions on the awstats.pl file but that didn't work. Anyone have any ideas as to what I am doing wrong?


Error_log has the key... what does it say?
_________________
----------------------
James A. Thornton
Atlanta, GA

How To Ask Questions the Smart Way
Back to top
View user's profile Send private message
EvilEye
l33t
l33t


Joined: 06 Aug 2003
Posts: 623
Location: Toronto

PostPosted: Thu Sep 27, 2007 7:46 pm    Post subject: Reply with quote

infinite1der wrote:
EvilEye wrote:
I tried changing the permissions on the awstats.pl file but that didn't work. Anyone have any ideas as to what I am doing wrong?


Error_log has the key... what does it say?


Here is what my error_log says...

Quote:
[Thu Sep 27 20:42:22 2007] [error] [client 66.11.182.5] client denied by server configuration: /usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl


I tried changing the /etc/apache2/modules.d/00_mod_mime.conf so that my server could run it with the following...

Quote:
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)

AddHandler cgi-script .cgi


but still didn't work
Back to top
View user's profile Send private message
EvilEye
l33t
l33t


Joined: 06 Aug 2003
Posts: 623
Location: Toronto

PostPosted: Thu Sep 27, 2007 7:50 pm    Post subject: Reply with quote

nizar wrote:
EvilEye wrote:
I tried changing the permissions on the awstats.pl file but that didn't work. Anyone have any ideas as to what I am doing wrong?


Look at http://forums.gentoo.org/viewtopic-t-581447-highlight-apache+awstats.html


ahhh, did this...

Quote:
In the initial <Directory /> Directive in the 00_default_settings.conf file.

I just commented out the 2 lines
Code:
# Order deny,allow
# Deny from all


..and it works! :D
Back to top
View user's profile Send private message
Lori
Apprentice
Apprentice


Joined: 30 Mar 2004
Posts: 239
Location: Barcelona, Spain

PostPosted: Fri Nov 30, 2007 11:20 am    Post subject: Reply with quote

I had the same problem, but I found a more elegant solution: I just commented out (well, actually deleted) the <IfModule mod_access.c> and </IfModule> lines from the original /usr/share/webapps/awstats/6.5-r1/postinst-en.txt file that I copied to /etc/apache2/vhosts.d. That way the default protection on the root of my system is still on.
_________________
"The hunt is sweeter then the kill."
Registered Linux User #176911
Back to top
View user's profile Send private message
Lori
Apprentice
Apprentice


Joined: 30 Mar 2004
Posts: 239
Location: Barcelona, Spain

PostPosted: Fri Nov 30, 2007 11:32 am    Post subject: Reply with quote

Well, I found the solution:

http://forums.gentoo.org/viewtopic-p-4563143.html#4563143
_________________
"The hunt is sweeter then the kill."
Registered Linux User #176911
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum