在Mac Os X 10.10.3(Yosemite)上使用PHP 5.5 *

时间:2015-06-29 02:29:52

标签: php macos

我正在尝试让我的本地Mac机器使用5.5版本的PHP。我已经运行了命令:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5

并获得输出:

****
[WARNING]
Detected OS X Yosemite 10.10. As this is quite new, there may be issues still. Your mileage may vary.
****
Get packager.tgz
Unpack packager.tgz
Please type in your password, as we want to install this into /usr/local
Start packager (may take some time)
downloading http://php-osx.liip.ch/install/5.5-10.10-frontenddev-latest.dat
downloading http://php-osx.liip.ch/install/5.5-10.10/frontenddev/5.5-10.10-frontenddev-5.5.25-20150515-095348.tar.bz2

Installing package 5.5-10.10-frontenddev into root /
Package 5.5-10.10-frontenddev is already installed at version 5.5.25-20150515-095348. You wanted to install version 5.5.25-20150515-095348.

我在httpd.conf文件(LoadModule php5_module libexec/apache2/libphp5.so)的根目录中删除了对PHP行的注释,但是,当我返回到我的控制台并键入php -v时,我得到:

*******:~ ************$ php -v
PHP 5.4.10 (cli) (built: Jan 21 2013 15:12:32) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

仍然使用PHP版本5.4。我该怎么做才能让系统使用PHP 5.5?谢谢!

0 个答案:

没有答案