Mac comes with PHP, but in the new system,/usr/bin became the System Protection directory, so we can not use the replacement system PHP method, this article to share is the Mac upgrade PHP 7, the need for friends can refer to
Mac comes with PHP, and this earth man knows
In the new system, it /usr/bin
became the System Protection directory, so the way we used to replace the system didn't work php
.
If it doesn't work, upgrade it and bring it with you. php
Curl-s http://php-osx.liip.ch/install.sh | Bash-s 7.0
vi ~/.bash_profile
Join a row
Path=/usr/local/php5/bin: $PATHexport PATH
Wait patiently, the installation will be complete.
Related recommendations:
CENTOS7 upgrade PHP version to PHP7 instance sharing
Procedures and considerations for upgrading PHP to 5.3.3 under Windows
Linux PHP53 upgrade PHP5533 linux PHP upgrade 5.5 php5.2 for Linux Linux Libphp5.s