Skip to content

Instantly share code, notes, and snippets.

@dospuntocero
Last active May 31, 2019 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dospuntocero/993e6f4c76ac45d705a6221db0edf1f3 to your computer and use it in GitHub Desktop.
Save dospuntocero/993e6f4c76ac45d705a6221db0edf1f3 to your computer and use it in GitHub Desktop.
use MAMPs php instead of system's
#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