Created
February 2, 2017 12:22
-
-
Save novasky-zz/d2e03825fd4caf5c415ced19c35e0ca6 to your computer and use it in GitHub Desktop.
MAC PHP ERROR: Terminal displys wrong php version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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