I have installed MAMP on OS X Snow Leopard (10.6.8) and I want to change the default path for PHP.
I tried both of the answers on this question, and on this question, and in this thread but when I'm trying which php
in Terminal I still get /usr/bin/php
.
I'm starting to get the impression that I'm doing something profoundly wrong, so any idea about what that might be, will be greatly appreciated.
Thanks in advance.
/usr/bin
has a higher precedence in$PATH
than your new location. Either remove the/usr/bin/php
file from your computer or alter your$PATH
variable so the new location appears before/usr/bin
/usr/bin/php
just to fix path problems.echo $PATH
is this:/Applications/MAMP/bin/php5.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin