Add a module to apache using apxs

To add mod_rewrite.c using apxs. Assuming the apache source file is located at /usr/src/apache/httpd-2.2.14

cd /usr/src/apache/httpd-2.2.14/modules/mappers/

 /usr/local/apache/bin/apxs -i -a -c mod_rewrite.c

 

You will get the message module has been added. Restart apache.

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: