Osx-mac install NPM with homebrew after the login info.php or show the php55 version number?

Source: Internet
Author: User
Keywords Php osx

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

  • Related Article

    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.