Home  >  Article  >  Backend Development  >  Mac upgrade to PHP 7

Mac upgrade to PHP 7

不言
不言Original
2018-03-30 14:56:513582browse

mac comes with PHP, but in the new system, /usr/bin has become the system protection directory, so we cannot use the method of replacing system PHP. This article will share with you how to upgrade PHP 7 on Mac. Friends in need can refer to

mac comes with php. Everyone on earth knows that

In the new system, /usr/bin has become the system protection directory, so The method we used before to replace the system php doesn’t work

Since it doesn’t work, then upgrade it and use its own php

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0

vi ~/.bash_profile

Add a line

PATH=/usr/local/php5/bin:$PATH
export PATH

Wait patiently until the installation is complete

Related recommendations:

Centos7 upgrade php version to php7 instance sharing

The process and precautions 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

The above is the detailed content of Mac upgrade to PHP 7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn