[Catalyst] Catalyst 5.55 and -Engine flag

Andy Grundman andy at hybridized.org
Wed Nov 16 16:09:29 CET 2005


John Wang wrote:
> My Catalyst apps won't run under 5.55 when -Engine is set to CGI or 
> Apache::MP20. I get the following error:
> 
> [Wed Nov 16 03:03:44 2005] [catalyst] [info] Test555a powered by 
> Catalyst 5.55
> failed to resolve handler Test555a
> 
> -Engine=Apache::MP20 worked fine under 5.33. I'm using 
> Catalyst::Engine::Apache v1.00 on CentOS 4.2 (2.6.9-22) with Apache 
> 2.0.55 and Perl 5.8.7. Am I missing something obvious?

It should almost never be necessary to specify the engine manually.  The 
Apache engines are auto-detected based on the version string in 
$ENV{MOD_PERL}.  To run as CGI (not recommended of course), you just 
need something like this:

ScriptAlias / /var/www/MyApp/script/myapp_cgi.pl/

myapp_cgi.pl takes care of setting the Engine variable for you.

-Andy



More information about the Catalyst mailing list