Tuesday, March 29, 2011

Install Apache module without re-installation with APXS

In case we have installed Apache using source code and we would like to install one of its modules called mod_rewrite or whatever. Then we need to do the following to install module without re-installing Apache:

cd apache-source-code
cd modules/mappers

/path/to/apache2/bin/apxs -iac mod_rewrite.c

Add following to httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so

Then Restart Apache, thats it!!!

No comments: