Submitted by harty83 on Sat, 12/14/2013 - 15:53
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
Submitted by JamieCameron on Sat, 12/14/2013 - 17:46 Comment #1
Yes, that will work - you could have PHP 5.2 installed as /usr/bin/php , and the other versions as php53 and php54.
Submitted by andreychek on Sat, 12/14/2013 - 17:51 Comment #2
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.
Submitted by harty83 on Sat, 12/14/2013 - 18:29 Comment #3
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
Submitted by harty83 on Sat, 12/14/2013 - 20:42 Comment #4
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
Submitted by JamieCameron on Sun, 12/15/2013 - 01:56 Comment #5
No, we don't support multiple minor versions, sorry.
Submitted by harty83 on Sun, 12/15/2013 - 11:16 Comment #6
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