I'm trying to update where the command line gets the location of the php binary:
Where can I edit so when I do 'which php' it shows me /usr/bin/php
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
It won't change the actual location, but you can make a symbolic link (shortcut) using the
sudo ln -s /opt/local/bin/php /usr/bin/php
That makes a shortcut from
/usr/bin/php. It's cleaner and more straightforward than having duplicate files or adding a directory to your
PATH, in my opinion.