I just curious if there's a way I can set up my development box so that I can have some sites running PHP 5.3 and some with PHP 5.2, and that I can switch between them fairly painlessly.
Asked
Active
Viewed 6,277 times
4 Answers
5
-
Wow... wish that would have shown up in the "has this question already been asked" dialog... – ironkeith Feb 23 '10 at 20:04
1
Looking at the solutions offered in that link, I vastly prefer using the same Apache instance on the same port and just overriding the handler. For details, see my blog post.

Bretticus
- 175
- 3
- 10
0
Yes you can! In the past I've install PHP 5.x from my distribution packages, then downloaded and compiled PHP 5.y from source. Then in Apache you load both modules and just overwrite the file handlers when you want to switch versions - which can even be done in .htaccess files.

Coops
- 5,967
- 1
- 31
- 52