Best way to upgrade PHP 5.3 to 5.4

Ryan Schmidt ryandesign at macports.org
Thu Apr 18 19:38:04 PDT 2013


On Apr 18, 2013, at 19:57, Tim Johnson wrote:

> I'd like to upgrade PHP, the current version is 5.3.15 to
> 5.4.
> 
> I can't remember if I originally installed PHP from Macports or if
> it was shipped as native to OSX.
> 
> Regardless : I would welcome advice on whether to use Macports or if
> anyone finds the following :
> http://php-osx.liip.ch/
> as  preferable.
> 
> I'm a bit green when it comes to OSX (previously on linux) and have
> two websites in active development based on PHP and I don't want to
> screw anything up.

As the maintainer of the php ports in MacPorts, I will of course recommend you use them. :)


You can use

	port installed | grep php

to see if you have any MacPorts php installed; if you do, chances are you're using that.


If you want php 5.4 for use as an Apache module, you would:

	sudo port install php54-apache2handler


If you have specific questions, let me know.




More information about the macports-users mailing list