Skip to content

Instantly share code, notes, and snippets.

@novasky-zz
Created February 2, 2017 12:22
Show Gist options
  • Save novasky-zz/d2e03825fd4caf5c415ced19c35e0ca6 to your computer and use it in GitHub Desktop.
Save novasky-zz/d2e03825fd4caf5c415ced19c35e0ca6 to your computer and use it in GitHub Desktop.
MAC PHP ERROR: Terminal displys wrong php version
Check using which php. This should tell you which is being used.
For a more direct solution to the problem:
Rename the OLD version of PHP
> sudo mv /usr/bin/php /usr/bin/php5424
Create a Symbolic link for your new version of php so it can live in /usr/bin
> sudo ln -s /usr/local/php5/bin/php /usr/bin/php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment