in reply to Re: Apache::DBI "cannot find apache.pm" failure - Should I upgrade from mod_perl 1.0 to 2.0? and if so, how?
in thread Apache::DBI "cannot find apache.pm" failure - Should I upgrade from mod_perl 1.0 to 2.0? and if so, how?

That's what I hear. My server people, though, only support redhat, and 1.99 was the last one in that. plus, some people here said that 1.0 might still be fine.

If I wanted to, though, how would I go about getting mod_perl 2.X up and running on this? CPAN just says I'm up to date when I try to get 'mod_perl'.
  • Comment on Re^2: Apache::DBI "cannot find apache.pm" failure - Should I upgrade from mod_perl 1.0 to 2.0? and if so, how?

Replies are listed 'Best First'.
Re^3: Apache::DBI "cannot find apache.pm" failure - Should I upgrade from mod_perl 1.0 to 2.0? and if so, how?
by Joost (Canon) on Feb 17, 2009 at 17:24 UTC
      okay, so I've decided to uninstall mod_perl 1.99xx, and install mod_perl 2.

      I've looked around, and haven't found any solid info on how to, ahem, 'do this'. installing MP2, yes, but uninstalling MP1, installing MP2, and the extra apache stuff that needs to be done eludes me.

      I know this might be asking a lot, but where can I find out how to do this on my own, or even better, a step-by-step tutorial?
Re^3: Apache::DBI "cannot find apache.pm" failure - Should I upgrade from mod_perl 1.0 to 2.0? and if so, how?
by marto (Cardinal) on Feb 17, 2009 at 15:22 UTC
      I'm there, and i'm lost, but, that isn't the focus of the question.

      If I install mod_perl 2.0, will I be able to get Apache::DBI truly working? it is marked as only 'tested lightly', and I don't want to step off a cliff here.

        I don't know, I don't use mod_perl. The documentation however, suggests it should work.

        If I where in your shoes I'd setup a system test environment, build everything (note the prerequisites) then test your existing code against it.

        Cheers

        Martin

        It works fine. Apache::DBI is widely used with mod_perl 2.
Re^3: Apache::DBI "cannot find apache.pm" failure - Should I upgrade from mod_perl 1.0 to 2.0? and if so, how?
by perrin (Chancellor) on Feb 17, 2009 at 17:31 UTC
    The deal is, you are running alpha software that Red Hat should never have packaged. The whole 1.9* line is a pre-release of 2.0 and it no longer works. That's why you can't get this to go. Apache::DBI works with 2.*, so get a recent version. I do recommend using the latest source and making an RPM from your own build, but if you have to use an external RPM try to find a source RPM from a more recent Red Hat release that you can recompile for your platform.
      like I asked the other fellow, I'm trying to figure out how to do this, without having to reinstall everything. I just want to get mod_perl 2 to 'go'.

      I *think* this involves uninstalling MP1, installing MP2, and rebuilding apache.

      Figuring out how to do this, however, eludes me. It seems like it would be easy, but I can't find a 'how to', and billable support seems excessive (although I'll do it if I need to).

      Any idea on where I can find a how-to?
        You don't have mod_perl 1. You have a broken alpha version of mod_perl 2. You have to install a real mod_perl 2 to make this work. Since you're using rpms, uninstalling your broken mod_perl should be simple: find the mod_perl rpm and remove it. Then you need to either install from source as described in the mod_perl docs or find a source rpm for a recent release.