[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: apache2::reload causing 500 errors on return statement
From:       Michael Greenish <greanie () yahoo ! com>
Date:       2006-10-23 13:50:27
Message-ID: 20061023135027.1714.qmail () web60411 ! mail ! yahoo ! com
[Download RAW message or body]

I understood from the documentation that if I put "use Apache2::Reload" inside my \
modules, that would work as the key for Apache2::Reload to reload only that module?

Thanks, I will try the ReloadDebug to see what it is doing.  

Should I not have the "use Apache2::Reload" in the top of my module?  Is that why I \
am getting the error on my return OK call?

----- Original Message ----
From: Philippe M. Chiasson <gozer@ectoplasm.org>
To: Michael Greenish <greanie@yahoo.com>
Cc: modperl@perl.apache.org
Sent: Friday, October 20, 2006 7:31:13 PM
Subject: Re: apache2::reload causing 500 errors on return statement

Michael Greenish wrote:
> I also had to make the follow addition to my config file:
> 
> PerlInitHandler Apache2::Reload
> PerlSetVar ReloadAll Off

With PerlSetVar ReloadAll Off, Apache2::Reload will _not_ reload anything by default.
You have to tell it specifically what to try and reload with something like:

PerlSetVar ReloadModules "MyModule::* Foo::*"

> I never figured out how to check if it was actually picking up changes on its own.

PerlSetVar ReloadDebug On

Will give you great details as to what gets reloaded and when.

--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic