After installing npm with homebrew in osx-mac, do I log on to info. php or do I display the php55 version?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.