httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gb1071nx" <>
Subject RE: [users@httpd] Unable to compile mod_rewrite
Date Fri, 07 Sep 2007 22:21:55 GMT

> >
> > One last question then (the reason I'm even compiling apache in the 
> > first place):
> >
> > I have an existing production server that does not have mod_rewrite 
> > either as an .so or within the list of "httpd -l" .  Is it a very 
> > stupid idea to download the particular version of Apache 
> I'm currently 
> > running, compile mod_rewrite as a shared module, put it in 
> my existing 
> > modules directory, and start using it?  That is... I would 
> compile my 
> > apache to
> > /usr/local/notapache2  and I'd just move 
> > /usr/local/notapache2/modules/ to 
> > /usr/local/apache2/modules/
> >
> >
> > I realize I should probably just take the opportunity to 
> upgrade, but 
> > I'm just wary of making changes.
> This will only work if the architecture is exactly the same 
> and the two apache's have compatible binary interfaces (in 
> general, that means the first two parts of the version number 
> must be the same).
> If all that is true, it will probably work. But you could 
> also just use apxs as described in the fourth example here:
> Joshua.

Thanks very much for your help Joshua,  this seems to have worked fine.
FTR, my version is 2.0.49, so I downloaded that version and did the
configure, make, make install with  mod-rewrite=shared. I then had a file that I just copied over to the existing server
deployment and  a restart seems to have loaded it fine.   Now, I just
have to get my regex right.  

This now seems easy!  I think I'll compile a bunch of servers, just for
fun, on the weekend!   :)

(no, not really)

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message