| View previous topic :: View next topic |
| Author |
Message |
JC99 l33t


Joined: 06 Aug 2003 Posts: 719 Location: Toronto
|
Posted: Thu Sep 13, 2007 12:44 am Post subject: awstats permission denied (SOLVED) |
|
|
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 JC99 on Fri Sep 28, 2007 12:57 am; edited 1 time in total |
|
| Back to top |
|
 |
mark_alec Bodhisattva


Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Thu Sep 13, 2007 1:49 am Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security. _________________ www.gentoo.org.au || #gentoo-au |
|
| Back to top |
|
 |
JC99 l33t


Joined: 06 Aug 2003 Posts: 719 Location: Toronto
|
Posted: Thu Sep 13, 2007 6:21 am Post subject: |
|
|
| 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 |
|
 |
nizar Apprentice


Joined: 19 Dec 2003 Posts: 256 Location: localhost
|
|
| Back to top |
|
 |
infinite1der n00b

Joined: 31 Jan 2006 Posts: 52 Location: Atlanta, GA
|
Posted: Thu Sep 27, 2007 11:39 pm Post subject: |
|
|
| 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 |
|
 |
JC99 l33t


Joined: 06 Aug 2003 Posts: 719 Location: Toronto
|
Posted: Fri Sep 28, 2007 12:46 am Post subject: |
|
|
| 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 |
|
 |
JC99 l33t


Joined: 06 Aug 2003 Posts: 719 Location: Toronto
|
Posted: Fri Sep 28, 2007 12:50 am Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
Lori Apprentice


Joined: 30 Mar 2004 Posts: 262 Location: Barcelona, Spain
|
Posted: Fri Nov 30, 2007 4:20 pm Post subject: |
|
|
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 |
|
 |
Lori Apprentice


Joined: 30 Mar 2004 Posts: 262 Location: Barcelona, Spain
|
|
| Back to top |
|
 |
|