Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to run Apache with both php 5.2 and 5.3, without other webservers such as nginx, lighttpd, etc. Just Apache HTTPD.

The easiest way to have both PHP 5.2 and PHP 5.3 on Apache, on the same machine, is to have them run in different webservers (or at least different webserver instances).

I already do this on windows, it works flawlessly because it is easy to specify the conf file that a specific instance loads.

But how can this be achieved on Mac OSX, without ditching the web server that OSX comes with built in ?

The basic is to create N-ip addresses that each apache instance will bind to, for example: - This is for apache httpd with PHP 5.2 - This is for apache httpd with PHP 5.3

(each apache will bind to its own ip address)

On OSX, i don't know how to configure HTTPD to start as multiple service/daemon, with different startup httpd.conf files!

share|improve this question

Install another apache & php using macports or fink into a separate directory and configure it to run on another port. This way you can have Apple supplied apache bound to port 80 and your custom installed on let's say 8080. httpd.conf is global for the apache instance even if it runs in several threads so the only way is to have two installs.

share|improve this answer

Your Answer


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.