Upgrading from php 5.3 to php 5.4 with Macport
Posted
by
dr.stonyhills
on Server Fault
See other posts from Server Fault
or by dr.stonyhills
Published on 2012-06-02T09:51:33Z
Indexed on
2012/06/02
10:43 UTC
Read the original article
Hit count: 266
PHP5.4 has been available for sometime now and Macport recently caught up with the release of port php54 but the process of upgrading is not as clear as possible. Even worst for those who are new to maintaining multiple versions of PHP on the same machine.
I am keen on trying out some of the new features in PHP5.4 like traits, new array form etc but falling back on to php5.3 for other compatibility stuff.
So i
sudo port install php5+ (all the variants, apache2 etc)
Then i tell it what PHP port to use as default
sudo port select --set php php54
Check what version of PHP is active in the terminal using php -v outputs php 5.4.3. But i seem to be having issues with choosing the right non cli version as in the version of the module run by apache etc is still php5.3.12.
Do i have to change the reference to the libphp5 in apache httpd.conf? Any advice on the right workflow for switching between php version on macport greatly appreciated!
© Server Fault or respective owner