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

Hi,

I've got a bunch of servers running Apache 1.x with mod_perl 1.x. Everything is working fine, but I need to install Apache::Reload. It appears though, that Apache::Reload is now a core module in mod_perl2, so typing:

install Apache::Reload
at the CPAN command prompt begins installation of mod_perl2, which I don't want to use (I'm guessing even if I did install Apache::Reload for mod_perl2, it wouldn't work with mod_perl1).

I could manually download the mod_perl1 version and install it, but I'd rather not do that. Can I force CPAN to install the version I want?

Thanks.

Replies are listed 'Best First'.
Re: Apache::Reload, mod_perl and CPAN
by Fletch (Bishop) on Mar 03, 2005 at 14:35 UTC

    You can always give a distribution rather than just a module name (e.g. G/GO/GOZER/mod_perl-1.29.tar.gz would get you m_p 1.x). You'd probably want M/MS/MSERGEANT/Apache-Reload-0.07.tar.gz.

Re: Apache::Reload, mod_perl and CPAN
by perrin (Chancellor) on Mar 03, 2005 at 14:41 UTC
    I would not recommend using the CPAN shell for installing on important servers. It's a neat trick, but the potential for getting a different version than you expected is always there (a new release between installs on two servers means different versions installed). It also always runs the tests. I don't want to run the module tests on every server in a cluster.
      Good point - I wasn't going to be doing the install myself, but will advise the people who are not to use the CPAN prompt. Thanks.