msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

28 Feb 13 Compiling an Apache module after Apache is been compiled

Sometimes one discovers a module which would be lovely to include in an already compiled Apache.
I’m using here an example of a vanilla Apache I compiled.
Constants:
Source path of Apache: /www/src/
Path of compiled Apache: /www/apache/
Module to compile: proxy_http

Compiling the module:
cd /www/src/modules/proxy
/www/apache/bin/apxs -i -a -c mod_proxy_http.c

This will:
– Compile the module
– Install it in the proper modules directory of the compiled Apache
– Add the following line in the httpd.conf of the compiled Apache

LoadModule proxy_http_module modules/mod_proxy_http.so

Reader's Comments

  1.    

    Clear and simple explanation. Thanks a lot, I was “over-doing” it by trying to recompile Apache…

    Reply to this comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: