[Catalyst] Catalyst under apache and modperl

Marcello m.romani at spinsoft.it
Thu Nov 10 09:23:23 CET 2005


Albert Vila ha scritto:
> Marcello wrote:
> 
>> Albert Vila ha scritto:
>>
>>> I'm running version 5.33
>>>
>>> Andy Grundman wrote:
>>>
>>>> Albert Vila wrote:
>>>>
>>>>> I'm running catalyst under apache 1.3.33 and mod_perl 1.29. The 
>>>>> application works  very slow, and intermittently i'm getting this 
>>>>> error message:
>>>>>
>>>>> [Wed Nov  9 19:56:01 2005] [error] Undefined subroutine 
>>>>> &MyApp::handler called, <F1> line 77.\n
>>>>
>>>>
>>>>
>>>> What version of Catalyst are you running?
>>>>
>>>> I'd recommend you upgrade to 5.49_03 and the latest C::E::Apache.
>>>>
>>>> -Andy
>>>>
>>>> _______________________________________________
>>>> Catalyst mailing list
>>>> Catalyst at lists.rawmode.org
>>>> http://lists.rawmode.org/mailman/listinfo/catalyst
>>>>
>>>>
>>>
>>
>> Are you preloading the application via PerlModule MyApp ?
> 
> I don't know but I think no.

Then I'm quite sure the problem is that each child has to compile the 
entire app at first request.
(I had a similar problem.)

> 
> The httpd configuration is:
> 
>  PerlSetEnv PERL5LIB /var/catalyst/myapp/lib:/var/catalyst/myapp/conf

Try to add the following:

    PerlModule MyApp
>  <Location />
>    SetHandler perl-script
>    PerlHandler MyApp
>  </Location>
> 
>  <Location /static>
>    SetHandler default-handler
>  </Location>
> 
>  <Location /perl-status>       SetHandler perl-script
>    PerlHandler Apache::Status
>  </Location>
> 
> Albert
> 
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 

HTH

-- 
Marcello Romani
Developer
Spin s.r.l.
Reggio Emilia
http://www.spinsoft.it




More information about the Catalyst mailing list