OSX Mavericks PHP /usr/bin/php, /usr/local/bin/php /usr/bin. php, /usr/bin
cd /usr/bin
php
sudo mv php php.old
/usr/bin/local:
cd /usr/local/bin
php /usr/bin, sudo:
sudo cp php /usr/bin
OSX Mavericks /usr/bin , php /usr/bin , php /usr/local/bin. php,
php -v
:
PHP 5.6.23 (cli) (built: Jun 24 2016 21:08:07)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
You will have a new version that was installed in / usr / local / bin / php, which you copied to / usr / bin / php instead of version 5.4. If you are using Apache and want your web server to also use the new php version, you will also need to update the httpd.conf file to point to the new php_module, but that is another question.
source
share