David
David

Reputation: 4465

installing additional apache modules

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

Upvotes: 6

Views: 31784

Answers (3)

pavium
pavium

Reputation: 15118

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.

Upvotes: 3

vpram86
vpram86

Reputation: 6000

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.

Upvotes: 1

bua
bua

Reputation: 4870

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

Upvotes: 2

Related Questions