Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with Awstats (CGI) and Apache 2.2 [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hurgh
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2002
Posts: 86
Location: Australia

PostPosted: Thu Sep 13, 2007 1:14 pm    Post subject: Problem with Awstats (CGI) and Apache 2.2 [Solved] Reply with quote

Hi All,

I have had apache 2.0 running fine for a while, and tonight I upgraded to 2.2. This all went fine, I went through all my config files and made the needed changes, but I am having trouble getting my awstats.pl script to run.

I have not made any changes to the config that previously worked, and as far as I can tell everything needed is in the new config files.

Here is the error i am getting when visiting the page:

Code:
[Thu Sep 13 23:06:05 2007] [error] [client 212.12.26.48] client denied by server configuration: /server/www/awstats/cgi-bin/awstats.pl


I did notice these 2 lines in a file called apache2-builtin-mods
Code:
#mod_cgi disabled              # enable via USE-flag
#mod_cgid disabled             # enable via USE-flag

I tried uncommenting the first one and changing disabled to shared, but that did not seem to help.

I have added the ExecCGI option to the directory directive where it was not already there, and still no joy.

Does any one know if I am missing something simple, or if there was a change to the way CGI was setup in apache 2.2?

Any suggestions would be much appreciated.

Regards

-Hurgh-


Last edited by hurgh on Thu Sep 13, 2007 2:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Sep 13, 2007 1:24 pm    Post subject: Reply with quote

You probably have awstats installed outside the normal htdocs directory and you need to enable cgi to run on those directories. Edit /etc/apache2/modules.d/00_mod_mime.conf and change this part:
Code:
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#AddHandler cgi-script .cgi


// SteveB
Back to top
View user's profile Send private message
hurgh
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2002
Posts: 86
Location: Australia

PostPosted: Thu Sep 13, 2007 2:08 pm    Post subject: Reply with quote

Hi Steve,

Thanks for the reply, as you can see in my original post, I have already tried that:
Quote:
I have added the ExecCGI option to the directory directive where it was not already there, and still no joy.


I have however found the problem.

It is 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

to make it match my old one, and then everything started working.

Thanks for the reply.

-Hurgh-
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
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