[Maypole] mod_perl configuration without <perl></perl> directives
Austin Frank
Austin Frank <austin.frank@gmail.com>
Thu, 28 Oct 2004 02:51:36 -0400
Hey all--
I'm excited to get going with Maypole. I'm trying to get BeerDB
running on an account I have with a hosting service. They've
installed all of the perl modules necessary to run Maypole using the
bundle from CPAN (great addition, by the way). My setup is described
at the end of the mail. I tried to make it as close to a stock
installation as possible.
The problem I'm having is that mod_perl on my host was not configured
with the option for <perl></perl> directives
(http://perl.apache.org/docs/1.0/guide/config.html#Enabling). I can
use SetHandler and PerlHandler in the .htaccess file for
public_html/beerdb, but I cannot tell mod_perl to use
cgi-bin/BeerDB.pm by using the
<Perl>
use lib '/home/aufrank/cgi-bin';
</Perl>
suggested in all of the documentation.
Is there a way to load cgi-bin/BeerDB.pm without <perl></perl>
directives? Possibly PerlRequire or PerlModule?
Thanks for any help,
/au
* BeerDB.pm is in cgi-bin:
-bash-2.05b$ ls cgi-bin/
BeerDB.pm
* Example files are in public_html/beerdb/:
-bash-2.05b$ ls -r public_html/beerdb/*
public_html/beerdb/maypole.css
public_html/beerdb/factory:
view pager macros frontpage addnew
title navbar list footer
search_form maypole header edit
public_html/beerdb/custom:
header frontpage
public_html/beerdb/beer:
addnew
* Apache configuration is in public_html/beerdb/.htaccess
-bash-2.05b$ cat public_html/beerdb/.htaccess
<Perl>
use lib '/home/aufrank/cgi-bin';
</Perl>
SetHandler perl-script
PerlHandler /home/aufrank/cgi-bin/BeerDB