尝试使用curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
在macOS Mojave 10.14.2上升级PHP时,我看到此警告:
konathal-OSX:sbin konathal$ curl -s https://php-osx.liip.ch/install.sh
| bash -s 7.3
****
[WARNING]
Detected macOS Mojave 10.14. There are serious issues with it, due to
the original apache not loading
foreign libraries anymore. PHP within apache will most certainly not
work anymore if you proceed!
The cli version still will.
See this issue at https://github.com/liip/php-osx/issues/249 for
details and discussion
****
Restart this script with
curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.3
to really install it
****
在macOS Mojave上升级PHP的最佳方法是什么?
答案 0 :(得分:2)
我喜欢自制酒。
例如。在cli brew上安装php@7.2或php@7.1等。在Mac上我也经常使用docker来运行带有PHP的容器。
非常方便:您可以使用brew php switcher脚本轻松切换PHP版本。使用brew search php
:-)找到它。