I have 2 versions of php installed on my macOS. When I restart the computer it is set by default to php 5.6 (I have already twice installed php 7 and it is available only till the next restart). How can I set the default to be 7.0? what should I do in .bash_profile? (to what should I change the home path of the php variable?)
If you install PHP with Homebrew, you might need to unlink the 5.6 version. Like:
$ brew unlink php56
Then you may start to install PHP 7.2
You can get more information from my article:
Upgrade PHP version from 5.6 to 7.2 on macOS Sierra (10.12)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With