Get MacOSX to use MAMP PHP path



Open a Terminal and Locate your osx php version with:

which php

On Maverick the result should be:

/usr/bin/php

2. Backup (move) your original php binary:

sudo mv /usr/bin/php /usr/bin/php.bak

 

sudo ln -s /Applications/MAMP/bin/php/php5.4.25/bin/php /usr/bin/php



It works like a charm, alias in bashrc doesn't work out. So must do it this way. Thanks @Heik