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

Is there an easy way to run multiple versions of PHP on Ubuntu 10.04 (desktop), and switching between them?

I am spoiled with the very easy installation and switching of PHP in WAMP for Windows. This would be for a development environment.

share|improve this question
up vote 1 down vote accepted

The idea would be to manually compile several versions of PHP (./configure, ./make but not ./make install), and have the PHP extension you request loaded within your VirtualHost configuration.

That way, you can postpone loading the PHP library until you need it, and you can choose a different PHP library for each VirtualHost.

share|improve this answer
More details would be appreciated, especially about the part "have the PHP extension you request loaded within your VirtualHost configuration"! – robguinness Feb 15 '13 at 13:53

To avoid to install and configure two or more web server (listeing on two or more ports), try to read these:

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.