You are not logged in.

#1 2009-07-08 16:57:37

pedro-kun
Member
From: Portugal
Registered: 2007-07-20
Posts: 30

mod_perl configuration

Hi,

I installed mod_perl, configured httpd.conf (added the "LoadModule perl-module modules/mod_perl.so" line) and now.. I don't know what to do.
I have a directory with an .htaccess file like this:

AddHandler perl-script .pl
PerlResponseHandler ModPerl::Registry
Options +ExecCGI

I try to access pl files and the server returns an Error 500.
What am I missing? How do I configure mod_perl in ArchLinux? I tried to google for explanations but whatever I try doesn't seem to work... Any help would be of great use! :)

Offline

#2 2009-08-18 14:33:54

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: mod_perl configuration

Not sure if that can help but here is how I did it (as per http://perl.apache.org/docs/2.0/user/in … y_Scripts):

  Alias /perl/ /home/httpd/httpd-2.0/perl/
  <Location /perl/>
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
      Order allow,deny
      Allow from all 
  </Location>

Then the test script:

  #!/usr/bin/perl
  print "Content-type: text/plain\n\n";
  print "mod_perl 2.0 rocks!\n";

Offline

#3 2011-11-24 10:36:31

trontonic
Member
Registered: 2008-07-21
Posts: 80

Re: mod_perl configuration

I added an entry to our wiki based on this info, please modify it if you have anything to add: https://wiki.archlinux.org/index.php/Mod_perl

Thanks.

Offline

Board footer

Powered by FluxBB