Installing additional Apache modules

I need to enable additional modules for apache, for example mod_proxy, mod_proxy-html and mod_proxy_balancer.

Is there a way to do this without recompiling all of apache?

thanks

+6
module apache
source share
3 answers

You just need to copy these modules to a directory on your system / server, then add the command for appache in the configuration file.

Example:

LoadModule mod_proxy modules/mod_proxy.so / linux LoadModule mod_proxy modules/mod_proxy.dll / windows 

http://httpd.apache.org/docs/2.0/mod/mod_so.html#loadmodule

+3
source share

You can list the compiled modules by doing:

 $ apache2 -l 

Note: this is NOT /etc/init.d/apache2 . If the module you need is not compiled yet, you will need to include it in the configuration file.

See here for a description of Debian / Ubuntu.

+3
source share

If your apache is built with shared library support, you can copy these modules from another computer (the same OS, same / lower version and, preferably, the same compiler) and put it in the modules folder. Then use the LoadModule directive to load dynamically.

If you do not have modules, you can download the source code and install / install apache in another directory (using --prefix) with the option --enable-mods-shared = most. Copy the necessary modules into the apache source modules folder and use the LoadModule to load it.

+1
source share

All Articles