Php – How to change php binary location in OSX command line

command-line-interfacemac-osxPHP

I'm trying to update where the command line gets the location of the php binary:

webserver:
/usr/bin

cli:
/opt/local/bin/php

Where can I edit so when I do 'which php' it shows me /usr/bin/php

Best Answer

In your .bashrc

export PATH=/usr/bin:$PATH