Last active
May 31, 2019 02:12
-
-
Save dospuntocero/993e6f4c76ac45d705a6221db0edf1f3 to your computer and use it in GitHub Desktop.
use MAMPs php instead of system's
This file contains 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
#first open the profile | |
mate ~/.bash_profile | |
- then add this 2 lines | |
PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1` | |
export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH | |
- after that if you call which php, it must say something like | |
/Applications/MAMP/bin/php/php7.1.12/bin/php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment