I used a nice one-line command to install PHP 5.4 Mac OS X Lion, from php-osx.liip.ch. This is working perfectly in Apache – my local sites are now using PHP 5.4.
But when I run php -v
from the terminal, it still uses version 5.3. This is causing problems.
which php
gives me /usr/bin/php
, so that's where the old version is still installed. And after some digging I've found that the 5.4 binary is located at /usr/local/php5/bin/php
.
So I'm nearly there... But how do I make the php
command resolve to /usr/local/php5/bin/php
?