Install multiple PHP environments on OS X Snow Leopard

Posted by Darren Newton on Super User See other posts from Super User or by Darren Newton
Published on 2009-09-07T13:11:08Z Indexed on 2010/04/30 2:27 UTC
Read the original article Hit count: 255

Filed under:
|
|
|
|

I just upgraded my MBP to Snow Leopard (OS X 10.6), which took PHP to 5.3

This is great, except I use my MBP as my development machine and I use a lot of PHP libs and frameworks (namely CakePHP 1.2) which are not compatible at the moment with PHP 5.3. CakePHP in particular does not have a stable version for PHP 5.3 so its not a matter of upgrading the framework (and the production servers are under PHP 5.2 anyway.)

Is there a way to install PHP 5.2.9 alongside PHP 5.3 and then using httpd.conf or .htaccess tell Apache which version of PHP to use for a particular directory?

Alternatively is there a way to do this with MacPorts?

Thanks!

© Super User or respective owner

Related posts about osx

Related posts about mac