Subject: | Catalyst::Manual::Cookbook mod_perl configuration incorrect? |
Date: | Mon, 03 Dec 2007 12:19:32 +0000 |
To: | bug-Catalyst [...] rt.cpan.org |
From: | Alex Page <alexp [...] transitive.com> |
Hi,
The mod_perl configuration at
http://search.cpan.org/dist/Catalyst-Manual/lib/Catalyst/Manual/Cookbook.pod#3._Configure_your_application
did not work for me; it seems that PerlSwitches was being ignored.
I asked around on #modperl and #london.pm and they suggested that I
should use a <Perl> block in my Apache configuration. This worked for
me, and I attach a diff for the documentation.
Alex
--
Alex Page, Release Engineer, Transitive Limited
Maybrook House, 40 Blackfriars Street, Manchester M3 2EG, UK
Web: http://www.transitive.com/ | Phone: (+44) 161-214-0406
--- catalyst_manual_cookbook.pod.orig 2007-12-03 12:15:11.000000000 +0000
+++ catalyst_manual_cookbook.pod 2007-12-03 12:16:05.000000000 +0000
@@ -1483,8 +1483,10 @@
when run within mod_perl. This makes the configuration extremely easy.
Here is a basic Apache 2 configuration.
- PerlSwitches -I/var/www/MyApp/lib
- PerlModule MyApp
+ <Perl>
+ use lib '/var/www/MyApp/lib';
+ use MyApp;
+ </Perl>
<Location />
SetHandler modperl