Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache and mod_perl
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
bedlamp
n00b
n00b


Joined: 23 Oct 2005
Posts: 21
Location: South Africa

PostPosted: Sat Sep 22, 2007 11:33 am    Post subject: apache and mod_perl Reply with quote

I have just installed apache (2.2.4-r12) and mod_perl (2.0.3-r1) and when i try to run a script i get a 403 Forbidden message

apache conf
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PERL"


mod_perl conf
Code:
 
Alias /cgi-perl/ /var/www/localhost/perl

<Location /perl-status>
                SetHandler perl-script
                PerlResponseHandler Apache2::Status
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
        </Location>

<Location /cgi-perl/*.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::PerlRun
        Options -Indexes ExecCGI
        PerlSendHeader On
    </Location>


Code:

bedlamp # ls -l /var/www/localhost/
total 8
drwxr-xr-x 2 root root 4096 Sep 22 13:03 htdocs
drwxr-xr-x 2 root root 4096 Sep 22 12:17 perl


I must be missing something. Any help would be appreciated
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1490

PostPosted: Sat Sep 22, 2007 3:45 pm    Post subject: Reply with quote

Did you re-emerge mod_perl after the apache upgrade?

hanji
_________________
Server Admin Blog - Uno-Code.com
Back to top
View user's profile Send private message
bedlamp
n00b
n00b


Joined: 23 Oct 2005
Posts: 21
Location: South Africa

PostPosted: Sat Sep 22, 2007 4:10 pm    Post subject: Reply with quote

yes. i was playing around and i added -D USERDIR to apache.conf, and it works in the userdir, but still not in the default cgi-bin directory
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