You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Alex Beamish <ta...@gmail.com> on 2007/03/06 23:35:59 UTC

Multiple versions of mod_perl?

Hi,

I have a test system that has Apache/2.0.40 and mod_perl 1.99.07-5 on it.
Everything works fine -- as far as I understand Apache. This server is
paired with another test server that proxies most requests back, and the
other server is running Apache/2.2.2 and mod_perl (I believe it's 2.0.2-6.1,
but I can't check right now).

I'm using Apache::AuthCookie to do authentication on the first server, and
it works fine. I'm using Apache2::AuthCookie on the second server, and it's
failing, apparently (I'm fairly sure) because the cookie created on the
Apache 2.2 server can't be digested on the Apache 2.0 server. The LOGIN on
the second server is *not* proxied, but handled locally (although it does
talk to a database on the first server); subsequent requests *are* proxied
to the first server, with the result that I'm correctly logged in and logged
right back out again.

I could upgrade the first server, but even better (that is, more convenient)
than that would be to have both Apache::AuthCookie and Apache2::AuthCookie,
and both mod_perl versions installed. That way, I could use different
mod_perl modules for different installations (it's a test system so it
typically has half a dozen installations on it). Is this a mad idea, or
could it work?

I look forward to hearing from you all. Thanks!

-- 
Alex Beamish
Toronto, Ontario
aka talexb

Re: Multiple versions of mod_perl?

Posted by Alex Beamish <ta...@gmail.com>.
On 3/6/07, Jonathan Vanasco <jv...@2xlp.com> wrote:
>
>
> On Mar 6, 2007, at 7:00 PM, Perrin Harkins wrote:
> > What version of "better" is that?  It sounds like my worst nightmare!
> >
> > You're running an ancient and unsupported version of mod_perl.  You
> > really need to upgrade.  I'm not sure you can expect two different
> > versions of AuthCookie to cooperate either.  Just go ahead and run a
> > recent version of mod_perl, and use a single release of AuthCookie.
>
> Yeah.  I'd agree.


Thanks for the feedback.

Its technically possible - you can run multiple versions, but its
> going to be a nightmare maintaining that.


Well, it's a test system .. but I agree it's going to be a challenge.

The version 1.99 is way old , buggy, and unsupported.  There have
> been a ton of apache updates since 2.4 too -- many of them security
> related.  Add to that there was a GIANT api switch in 2.0.5(?) that
> isn't backwards compatible.  Even if your solution worked, you're
> only going to be creating new problems.
>
> Upgrade your distribution to something stable , if you need to keep
> it for some crazy reason --  find out exactly why the authcookie
> isn't working.  It shouldn't be difficult to subclass the Authcookie
> on server 1, and make it work with Apache2::Authcookie.
>
> Exactly why is server 1 using apache::authcookie though?  Shouldn't
> it be using apache2::authcookie ? 1.99 is mp2 beta -- the authcookie
> module (at least one tied to something before the api switch ) should
> work.


It's the old story -- this was a prototype thrown together that we spent a
bit of time developing. It got turned into a piece of code that we used for
'a little processing' .. and then Production. I'm slowly upgrading it and
moving it to newer platforms.

Thanks again.

-- 
Alex Beamish
Toronto, Ontario
aka talexb

Re: Multiple versions of mod_perl?

Posted by Jonathan Vanasco <jv...@2xlp.com>.
On Mar 6, 2007, at 7:00 PM, Perrin Harkins wrote:
> What version of "better" is that?  It sounds like my worst nightmare!
>
> You're running an ancient and unsupported version of mod_perl.  You
> really need to upgrade.  I'm not sure you can expect two different
> versions of AuthCookie to cooperate either.  Just go ahead and run a
> recent version of mod_perl, and use a single release of AuthCookie.

Yeah.  I'd agree.

Its technically possible - you can run multiple versions, but its  
going to be a nightmare maintaining that.

The version 1.99 is way old , buggy, and unsupported.  There have  
been a ton of apache updates since 2.4 too -- many of them security  
related.  Add to that there was a GIANT api switch in 2.0.5(?) that  
isn't backwards compatible.  Even if your solution worked, you're  
only going to be creating new problems.

Upgrade your distribution to something stable , if you need to keep  
it for some crazy reason --  find out exactly why the authcookie  
isn't working.  It shouldn't be difficult to subclass the Authcookie   
on server 1, and make it work with Apache2::Authcookie.

Exactly why is server 1 using apache::authcookie though?  Shouldn't  
it be using apache2::authcookie ? 1.99 is mp2 beta -- the authcookie  
module (at least one tied to something before the api switch ) should  
work.




// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



Re: Multiple versions of mod_perl?

Posted by Perrin Harkins <ph...@gmail.com>.
On 3/6/07, Alex Beamish <ta...@gmail.com> wrote:
> I could upgrade the first server, but even better (that is, more convenient)
> than that would be to have both Apache::AuthCookie and Apache2::AuthCookie,
> and both mod_perl versions installed.

What version of "better" is that?  It sounds like my worst nightmare!

You're running an ancient and unsupported version of mod_perl.  You
really need to upgrade.  I'm not sure you can expect two different
versions of AuthCookie to cooperate either.  Just go ahead and run a
recent version of mod_perl, and use a single release of AuthCookie.

- Perrin