Support three PHP versions?

Just wondering if it is in the works or in the project plan to implement support for three versions of php so I can have an option to use php 5.3, 5.4 or 5.5?

thanks! alan

Status: 
Active

Comments

Yes, that will work - you could have PHP 5.2 installed as /usr/bin/php , and the other versions as php53 and php54.

Instructions for using multiple PHP versions on CentOS is here:

http://virtualmin.com/documentation/web/multiplephp

We don't have PHP packages for Ubuntu that we recommend, but if you have multiple packages that can be installed side-by-side, or you compile it yourself, you can have multiple PHP versions by using paths similar to what's done in the above instructions.

I'm currently doing that for PHP 5.3 and 5.4 (using phpbrew to install other versions of php) but wasn't for sure if it supported more than two versions. Does it?

If so, would that support subversions of major versions such as 5.4.16, 5.4.22, etc?

Thanks! Alan

Okay; so it does support more than 2 major versions! Guess its not possible to have minor versions i.e. 5.4.16 and 5.4.20? At least I couldn't get it recognize more than one. Thinking it would be helpful for testing PHP compilations to ensure they work without error.

Thanks! Alan

No, we don't support multiple minor versions, sorry.

Okay; thanks. I found a way to force individual servers to use a specific version of PHP by modifying the php5.fcgi file. That'll serve to test before changing the symlink in /opt/rh.

Thanks! Alan