MacOS removes php 5.6 and leaves only php 7
I have 2 php versions installed on my macOS. When I restart my computer it defaults to php 5.6 (I have already installed php 7 twice and it is only available until next restart). How do I set the default to 7.0? what should i do in .bash_profile? (why should I change the home path for the php variable?)
+4
Andrew T
source
to share
1 answer
If you are installing PHP with Homebrew, you may need to detach version 5.6. How:
$ brew unlink php56
Then you can start installing 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)
0
Charles hsu
source
to share