jbrugger has asked for the wisdom of the Perl Monks concerning the following question:

Hi all.
Not sure if this really IS a perl question to ask here, but i'll try:

I was running 'debian sarge', using apache, modperl and the module Apache::Reload, and all was working fine.
I needed some modules from a newer version however (FOP and Xalan), to be able to generate nice pdf-files, so i did a dist-upgrade to the next version (dependencies etc.), and now i'm running: Apache/2.0.54 (Debian GNU/Linux) mod_perl/2.0.1 Perl/v5.8.7

The thing however (it's a development machine), is that i no longer am able to use Apache::Reload. When i load it, apache2 starts, but at the time of a request from a browser i get a server error (But nothing in the log-files).
I tried the modules Reload v.07 and v.09, both no luck.
Now i've read that there is a renaming issue when upgrading from 1.99 to 2.01, e.g. PerlModule Apache2 is no longer needed, but i'd like to run ModPerl::Registry in stead of ModPerl::PerlRun, so i'd love to have Reload working again.
Is there anyone who has a clue what might be the issue here (and tell me how to solve it?)
$Thanks->{'again'};

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re: Apache::Reload not working??
by randyk (Parson) on Sep 06, 2005 at 14:05 UTC
Re: Apache::Reload not working??
by philcrow (Priest) on Sep 06, 2005 at 14:17 UTC
    I've had Apache2::Reload working (you did use Apache2::Reload didn't you?). My setup looked like this:
    LoadModule perl_module modules/mod_perl.so LoadModule apreq_module modules/mod_apreq2.so <Perl> #!/usr/bin/perl use lib '/path/to/my/source/checkout/lib'; # various use statements... </Perl> PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlSetVar ReloadModules "Base::* OtherBase::*"
    Phil
Re: Apache::Reload not working??
by saberworks (Curate) on Sep 06, 2005 at 15:47 UTC
    I wasn't able to get Apache::Reload to work on either my 1.xx or 2.xx version of apache on Debian. Everything loaded but they would never reload the modules. I stooped to setting max_requests_per_child to 1 in the apache configuration for my dev box. :(
Re: Apache::Reload not working??
by jbrugger (Parson) on Sep 07, 2005 at 04:16 UTC
    Ok, thanks all for your replies.
    Indeed the solution was simple, i had to use Apache2::Reload in stead of Apache::Reload...
    I think it has to do that my former mod_perl was 1.99xxx and this is 2.01, since the former version allways worked on my apache2 server.
    Anyway, problem solved!

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.