Install npm to develop php with MACOs homebre. After the installation, the php version displayed on the info. php page is php5, but the php-v on the terminal is php7.0. Php-fpm-v is php5. Next I will delete the built-in php based on your sudorm-rusrbinphp. The texture is as follows...
Install npm to develop php with MACOs homebre. After the installation, the php version displayed on the info. php page is php5, but the php-v on the terminal is php7.0. Php-fpm-v is php5. Next I will delete the built-in php based on your sudo rm-r/usr/bin/php.
The textures are as follows:
After php70 is installed, the info. php version displayed on the logon page is php5.
The version number is as follows:
Finally, I used php-fpm to check fpm. The result shows this:
I can't use this method any more.
This occurs when the method is used. I don't understand.
I will read another document later. I deleted the built-in php and restarted nginx, Which is useless. The version number is the same as that in the first figure.
Which of the following experts can help solve this problem?
Reply content:
Install npm to develop php with MACOs homebre. After the installation, the php version displayed on the info. php page is php5, but the php-v on the terminal is php7.0. Php-fpm-v is php5. Next I will delete the built-in php based on your sudo rm-r/usr/bin/php.
The textures are as follows:
After php70 is installed, the info. php version displayed on the logon page is php5.
The version number is as follows:
Finally, I used php-fpm to check fpm. The result shows this:
I can't use this method any more.
This occurs when the method is used. I don't understand.
I will read another document later. I deleted the built-in php and restarted nginx, Which is useless. The version number is the same as that in the first figure.
Which of the following experts can help solve this problem?
Nginx + php-fpm running web, php version is based on php-fpm
Although you have installed php70 here, But php-fpm version is still PHP 5.5, so it should be running php70-fpm
Path should be/usr/local/opt/php70/sbin/php70-fpm
After you have installed php, you will be prompted/usr/local/sbin
, Add it to the PATH, and then run it.php-fpm -v