Apache - how do I build individual and/or all modules as shared modules Apache - how do I build individual and/or all modules as shared modules unix unix

Apache - how do I build individual and/or all modules as shared modules


Try the ./configure option --enable-mods-shared="all", or --enable-mods-shared="<list of modules>" to compile modules as shared objects. See further details in Apache 2.2 docs

To just compile Apache with the ability to load shared objects (and add modules later), use --enable-so, then consult the documentation on compiling modules seperately in the Apache 2.2. DSO docs.


./configure --prefix=/usr/local/apache2 --enable-mods-shared="all" --enable-proxy=shared

To get rewrite, proxy and bunch of other modules, I used the above command. In my previous installation, using --enable-mods-shared="all" compiled/installed the proxy module as well. But in v2.2.22 "all" did not include the proxy module.