- Find the path to your MAMP PHP bin directory. This is located in the MAMP folder within the Applications directory.
/Applications/MAMP/bin/php/phpx.x.x/bin
- Open Terminal and run the following command.
- Note: Replace phpx.x.x with the version you're targeting (e.g. php5.5.10).
export PATH=/Applications/MAMP/bin/php/phpx.x.x/bin:$PATH