tobbe
tobbe

Reputation: 1807

installing php 5.4 on mac, change version?? (returns older version?)

Im trying to update php to 5.4, and I think ive installed it with http://php-osx.liip.ch/. But when i do php -v it says that i have 5.3.15. But if i do /usr/local/php5/bin/php -v it says 5.4.9. Is there something i should change to get 5.4 as default?

here's a pic of Terminal: enter image description here

(never done this before, sorry if its a stupid question.)

Upvotes: 0

Views: 344

Answers (2)

tobbe
tobbe

Reputation: 1807

typing this in Terminal fixed it for me: PATH=/usr/local/php5/bin:$PATH

Upvotes: 0

Louis Huppenbauer
Louis Huppenbauer

Reputation: 3714

Uninstall the old version of php and make sure that the new versions directory is in the $PATH variable.

Upvotes: 2

Related Questions