I have to develop both on php 5.2 and on php 5.3. I need those two versions installed on my system and ability to switch fast between them.

One solution I found is to upgrade/downgrade everytime I need other PHP, but I would like solution that I could only switch one apache config file.

link|improve this question
feedback

2 Answers

You could very easily do this with PHP-FPM. Use two instances of it with different PHP versions.

link|improve this answer
feedback

The best thing to do would be to modify the apache configuration so that either special file extensions or special paths get executed by the different version modules.

You will likely not be able to install both separately using APT. I would install the most up to date php packages with apt, and compile the older version of php you want into a different path prefix, and a different apache module name.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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