mac OS X中升级php5.5至php5.6 or php7
生活随笔
收集整理的這篇文章主要介紹了
mac OS X中升级php5.5至php5.6 or php7
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在做php項目中,提示“Warning. PHP 5.6 or newer is required. Please, upgrade your local PHP installation.” 通過phpinfo()查看,當前的版本號是php5.5,于是上網搜索如何快速升級php。
參考網址:?http://coolestguidesontheplanet.com/upgrade-php-on-osx/
真的是非常方便。僅僅需要一條命令:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6這個命令會執行很長時間,大概20分鐘左右
最終升級完成并成功后,會有如下的輸出
Executing post-install script /tmp/5.6-10.10-frontenddev-post-install Create symlink /usr/local/php5/entropy-php.conf /etc/apache2/other/+php-osx.conf Restarting Apache AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using caoxindeMacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message Syntax OK再次通過 phpinfo() 查看,php的版本已經完成升級。
總結
以上是生活随笔為你收集整理的mac OS X中升级php5.5至php5.6 or php7的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: hdu 模拟 贪心 4550
- 下一篇: 云告警平台 OneAlert :如何帮助