Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X Mavericks how to upgrade PHP 5.4 to 5.5+ latest?

Tags:

php

macos

I would tring to update my php version to the version 5.5+ latest

When I'm looking via /usr/local/bin/php -v in the console I see the version 5.5+ and with php -v it tell me there is the version 5.4 installed.

How can I remove the older version 5.4 and install latest 5.5+ latest?

like image 717
Kalpesh Gamit Avatar asked Dec 04 '22 07:12

Kalpesh Gamit


1 Answers

Typically I've used the PHP package from liip.ch

From terminal, run:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5

It will not remove the default installation of PHP 5.4 from your system, but it does not have any impact on using PHP 5.5. They address the issue with php -v in their FAQ.

like image 50
Kirk Beard Avatar answered Dec 14 '22 15:12

Kirk Beard