Use Mac's homebre to install NPM to develop PHP. After installation, the landing page info.php display version is the PHP5, but the terminal php-v is php7.0. Php-fpm-v is PHP5. Behind me according to your sudo rm-r/usr/bin/php, delete your own PHP, or so
Map as follows
After installing the PHP70, the landing page info.php display version is the own php5
The version number is as follows
Finally I looked at FPM with PHP-FPM, and it turned out this
Then I use this method and I have no eggs.
This is what happens when you use the method. I don't understand.
Look at the back of a document, delete the own PHP, restart Nginx, or useless. The version number or the first picture.
So I hope that the great God to help solve the next
Reply content:
Use Mac's homebre to install NPM to develop PHP. After installation, the landing page info.php display version is the PHP5, but the terminal php-v is php7.0. Php-fpm-v is PHP5. Behind me according to your sudo rm-r/usr/bin/php, delete your own PHP, or so
Map as follows
After installing the PHP70, the landing page info.php display version is the own php5
The version number is as follows
Finally I looked at FPM with PHP-FPM, and it turned out this
Then I use this method and I have no eggs.
This is what happens when you use the method. I don't understand.
Look at the back of a document, delete the own PHP, restart Nginx, or useless. The version number or the first picture.
So I hope that the great God to help solve the next
Nginx + php + php-fpm run the Web, PHP version is based on PHP-FPM
Although you have installed the PHP70, but the PHP-FPM version is PHP 5.5, so should be running the PHP70-FPM
The path should be /usr/local/opt/php70/sbin/php70-fpm
After you have installed PHP, you will be prompted to say /usr/local/sbin
, add to the path path, and then you runphp-fpm -v