Re: [Maypole] mod_perl configuration without <perl></perl> directives

From: David R. Baird (dave at riverside-cms.co.uk)
Date: Thu Oct 28 2004 - 10:12:01 BST


Try

PerlRequire /path/to/startup.pl

then you can load your modules or add libraries in startup.pl

d.

On 28 Oct 2004 at 2:51, Austin Frank wrote:

> 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
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole

-- 
Dr. David R. Baird
Riverside Content Management Systems
http://www.riverside-cms.co.uk

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT