Reputation: 658
I just ran the recent update for OSX, and when I restarted my bash_profile was no longer recognizing my new PATH for php.
If I which php
I get /usr/bin/php
But in my ~/.bash_profile I have export PATH=/Applications/AMPPS/php-5.4/bin/php:$PATH
If I save and source it, I get the same thing for which php
I have scoured the other forums, I do not have a ~/.profile or a ~/.bashrc file, so if my research is correct, it should be reading from .bash_profile.
Am I wrong in my assumption? This is really annoying, I just want my other version of php back to default.
Any help is very much appreciated.
Edit: the result of echo $PATH
is
/Applications/AMPPS/php-5.4/bin/php:/Applications/AMPPS/php-5.6/bin/php:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Upvotes: 1
Views: 789
Reputation: 1
Paths need to be your path to the application. If the executable php is at /Applications/AMPPS/php-5.4/bin/php
your PATH needs to be set to /Applications/AMPPS/php-5.4/bin
Upvotes: 0