Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have installed Apache 2.2 on my Mac OS X 10.4 machine, from source. Now, I want to download/add/install/enable modules. For example, I'd like libphp5, mod_rewrite, etc. How would I go about finding and adding these modules to my installation?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You have to use apxs.

apxs is a tool for building and installing extension modules for the Apache HyperText Transfer Protocol (HTTP) server. This is achieved by building a dynamic shared object (DSO) from one or more source or object files which then can be loaded into the Apache server under runtime via the LoadModule directive from mod_so.

I'm sure there are a lot of howtos depending on which module you want to install.

share|improve this answer

The simplest way is by using the 'a2enmod' command from the command line. That will enable modules for you, and a2dismod to remove them.

For the PHP modules, you may need a different solution - compiling it first, for example. But rewrite and several others will work happily with the above commands.

share|improve this answer
1  
Aren't a2enmod/a2dismod Debian-specific? –  Chris Jester-Young May 2 '09 at 15:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.