0

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:

192.168.0.52 - This is for apache httpd with PHP 5.2 192.168.0.53 - 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!

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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