perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MARTIN MOSS <martin_m...@btopenworld.com>
Subject Re: Method Handler not working
Date Fri, 23 Jul 2004 22:24:27 GMT
Thanks very much Perrin,

Have a nice weekend,

Marty


--- Perrin Harkins <perrin@elem.com> wrote: > On Fri,
2004-07-23 at 18:12, MARTIN MOSS wrote:
> > My question is, If you don't have a PerlModule
> > statement or a use My::Module, or a require or a
> > +My::Module statement  so it looks like this
> > 
> > #PerlModule My:Module
> > <Location />
> > set-handler PerlScript
> > PerlHandler My::Module 
> > </Location>
> > 
> > But the module My::Module is on the Include path
> for
> > apache (hmm or is that the apache user), What
> exactly
> > happens?
> 
> mod_perl tries to load it at request time.  There
> are two reasons why
> this is bad.  The first is that it doesn't allow for
> copy-on-write
> shared memory.  You want to load it before the fork,
> and this doesn't do
> that.  The second is that it doesn't know about the
> method prototyping
> and thus your handler is not called as a method.
> 
> So, load the module first.  You can do it in any
> number of ways
> (startup.pl is common).  I think this will fix your
> problem.
> 
> - Perrin
> 
>  


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all
new features - even more fun!  http://www.allnewmessenger.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message