[Catalyst] running catalyst through mod_perl
Andy Grundman
andy at hybridized.org
Mon May 14 22:24:26 GMT 2007
On May 14, 2007, at 5:09 PM, John Goulah wrote:
> If this is the wrong list, please direct me to the right place.
> I'm trying to get Catalyst working under apache/mod_perl (works
> fine with the standalone server).
>
> Basically, I have a very simple app called Registration. In apache
> I set it up like:
>
> <Location /registration>
> SetHandler perl-script
> PerlHandler Registration
> </Location>
>
> If I startup apache through the init.d script, it complains that it
> cant find Registration.pm in @INC. The obvious way around this was
> to set the PERL5LIB env var to the path of my app lib dir, and so
> this does work:
>
> PERL5LIB=/var/www/registration/lib /usr/sbin/apache2ctl start
Please see the example configurations:
1.3:
http://search.cpan.org/~agrundma/Catalyst-Engine-Apache-1.09/lib/
Catalyst/Engine/Apache/MP13.pm
2.x:
http://search.cpan.org/~agrundma/Catalyst-Engine-Apache-1.09/lib/
Catalyst/Engine/Apache2/MP20.pm
More information about the Catalyst
mailing list