I had PHP version 5.4 installed on my Mac 10.9 machine and wanted to upgrade to 5.6.
I downloaded the source files and ran
make install. I looked and it seems to have compiled and installed successfully, but it installed itself into
/usr/local/bin. The old version of PHP is installed in
When I run
/usr/bin location is used, since
/usr/bin comes before
/usr/local/bin in the
$PATH. I would like to use the new version.
Should I just replace the old version of PHP in
/usr/bin with the version in
/usr/local/bin? Or should I delete them from
It's a little tricky because the 5.6 install also installed some other things, like a new version of
pecl and a couple other helper binaries (including
phpize). Some of those (the last two) were already present in the
/usr/bin folder, but
pecl were not. Should I move all the new things to
Lastly, why is it that the newer one installed in
/usr/local/bin but the old one did not? Is the distinction important? Did the PHP team decide to move it for some reason? Or was it just in
/usr/bin because it came with my system, whereas the downloaded update gets put into
And does the location of
php.ini depend on any of this?