I am tying to update the PHP on my Mac OS X machine from 5.4 to 5.6. I am using Homebrew. I installed PHP 5.6 using Homebrew successfully: brew install php56
.
However, when I rebooted the Unix shell, and typed the command php -v
, it still shows PHP 5.4.10.
I ran: export PATH="$(brew --prefix homebrew/php/php56)/bind:$PATH"
.
However, the php -v
has not changed to 5.6. What can I do to get my system to use 5.6?