Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ApacheGallery] ApacheGallery on mod_perl 2 (solved - patch added)



Fri, Dec 31, 2004 ve 04:50:04PM +0100, Ondra Kudlik napsal:
> Fri, Dec 31, 2004 ve 09:45:01AM -0600, Tom Brown napsal:
> > On Fri, Dec 31, 2004 at 03:09:04PM +0100, Ondra Kudlik wrote:
> > > I want to run apachegallery under apache2 and mod_perl2. When I
> > > install and configure it, I got following error:
> > > 
> > > failed to resolve handler `Apache::Gallery': Can't locate
> > > Apache/Server.pm
> > > 
> > > I searched through lists and mod_perl documentation and found, that
> > > functions from Server.pm is now provided by Apache::ServerRec.

So, my two days solution (i wasn't too friendly with mod_perl
internals) is here:

----------------------------------------------------------------------

        if ($::MP2) {
                require Apache2;
-               require Apache::Server;
+
+               if ( $mod_perl::VERSION >= 1.9915 ) {
+                       require Apache::ServerRec;
+               } else {
+                       require Apache::Server;
+               }
+
                require Apache::RequestRec;
                require Apache::Log;
                require APR::Table;

----------------------------------------------------------------------

I don't know, if it works correctly, but in changelog is migration
from Server to ServerRec in version 1.99.15

On my 2.0.0-RC2-XMas release it works good.

The whole point is in the fact, that even if many users upgrade
their mod_perl installation they didn't remove old files, so
Apache2/Apache/Server.pm stayed in system ...

-- 
 .''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
  `-   http://www.nosoftwarepatents.com/cz/m/intro/index.html 

_______________________________________________
users mailing list
[email protected]
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers