mac OS X中升级php5.5至php5.6 or php7
生活随笔
收集整理的這篇文章主要介紹了
mac OS X中升级php5.5至php5.6 or php7
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在做php項(xiàng)目中,提示“Warning. PHP 5.6 or newer is required. Please, upgrade your local PHP installation.” 通過(guò)phpinfo()查看,當(dāng)前的版本號(hào)是php5.5,于是上網(wǎng)搜索如何快速升級(jí)php。
參考網(wǎng)址:?http://coolestguidesontheplanet.com/upgrade-php-on-osx/
真的是非常方便。僅僅需要一條命令:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6這個(gè)命令會(huì)執(zhí)行很長(zhǎng)時(shí)間,大概20分鐘左右
最終升級(jí)完成并成功后,會(huì)有如下的輸出
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再次通過(guò) phpinfo() 查看,php的版本已經(jīng)完成升級(jí)。
總結(jié)
以上是生活随笔為你收集整理的mac OS X中升级php5.5至php5.6 or php7的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: hdu 模拟 贪心 4550
- 下一篇: 云告警平台 OneAlert :如何帮助