Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing additional apache modules

Tags:

module

apache

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

Is there a way for me to do that without recompiling the whole apache?

Thanks

like image 932
David Avatar asked Sep 07 '09 12:09

David


3 Answers

You can list the compiled in modules by executing:

$ apache2 -l

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

See here for a Debian/Ubuntu description.

like image 91
pavium Avatar answered Sep 21 '22 23:09

pavium


You need just to copy those modules to some directory on Your system/server, then add a command for appache in configure file.

ex:

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

like image 45
bua Avatar answered Sep 17 '22 23:09

bua


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

If you dont have the modules, you can download the source and build/install apache in a different directory (using --prefix) with option --enable-mods-shared=most. Copy the required modules to the original apache modules folder, and use LoadModule to load it.

like image 45
vpram86 Avatar answered Sep 21 '22 23:09

vpram86