Help - Search - Members - Calendar
Full Version: How To Add Module To Apache Source
Linuxhelp > Support > Technical Support
fmagoufis
I build apache with all the necessary settings and modules that were required at the time of uild. Now the programmers want me to add in the mod_rewrite module. How can I recompile apache to add this in without losing what I built into apache before? Is this possible? Here is what I get from a httpd -l

Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_info.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_proxy.c
mod_so.c
mod_setenvif.c
mod_ssl.c
mod_php4.c
mod_perl.c
chrisw
what version of apache you running
fmagoufis
Server version: Apache/1.3.27 (Unix)
chrisw
well the re-write module is quite touchy getting it installed.
you install modules by typing the following command


you have to be in the directory where the module resides
usually the apache source directory

<path to apache>/bin/apxs -c -i -a -n rewrite mod_rewrite.c <-- you might have to switch the last two..im not sure....

you will most likely not get this module installed for some reason...
but you can try...i havent been able to get it installed properly
and have tried many times....i dont know why it wont install so
i really cant answer the question about that...but if you are
able to get it installed please let me know....
fmagoufis
Tried it but it yelled at me. Screw it, I can always back track and start over again.
chrisw
thats what i thought....there is a file in your apache source directory that has the configure script you used to compile
apache with....

the file with have something like the following

./configure --prefix=/usr/local/apache --enable-so.....etc

not necessarilly have the following options but could....you can then just
add the info that is necessary to add the rewrite module and then you
should just be able to run that file
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.