Upgraded PHP on Sierra

<OLD>
The PHP version on my Sierra was 5.6. I want to upgrade it to PHP 7.0 version. I followed a tutorial from https://coolestguidesontheplanet.com/upgrade-php-on-osx/.

PHP 7 would be installed in ‘/usr/local/php5/’ directory. Actually this is a symlink directory from ‘/usr/local/php5-7.0.18-20170506-095200/’ directory. Now I can use PHP 7.0 on my mac

But the php version on the terminal still show the old version. I need to change the $PATH like on this tutorial: https://stackoverflow.com/questions/25731145/mac-upgraded-php-to-5-6-but-cli-php-v-get-5-3-28:
Open Terminal, then run

Then add these 2 lines at the bottom of the file:

Save and reopen the terminal. Here is the new version:

</OLD>
NOW USE brew
REF: https://stackoverflow.com/questions/54207030/what-are-the-options-to-upgrade-php-on-macos-mojave-10-14-2
SEARCH PHP

INSTALL PHP 7.2

START SERVICE

ADD PATH

PHP.INI

MUST CLOSE THE TERMINAL THEN OPEN IT BACK TO CHECK THE PHP VERSION

PHP-FPM

CHANGE PHP SETTING

 

Mac OSX 10.12 (Sierra)

Two days ago I upgraded my macbook pro from 10.10 (yosemite) to 10.12 (sierra). The upgrade was pretty smooth but to upgrade it, I found many difficulties about my Apple ID.

Actually I have an Apple ID a long time ago but rarely use it. I remember to use it when I tried to install hackintosh. I tried to use it to download Sierra but I always got a complain on the AppStore like this ‘This Apple ID has not yet been used with the App Store. Please review your account information.’. I thought my Apple ID was deactivated somehow. not sure. Then I created a new Apple ID. But I got the same complain message. I tried many things like I said in https://discussions.apple.com/message/31865081#31865081 but none is working. Even I filled the payment form with my credit card. Finally it’s working. Somehow I tried to use my old Apple ID. It displayed the above message. Then I filled the payment form (the thing I didn’t do at the first time) with my credit card. This time my Apple ID is working and I can download and upgrade my OSX.