码迷,mamicode.com
首页 > Web开发 > 详细

PHP-mac下的配置及运行

时间:2015-02-18 17:38:28      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:

Here‘s another option, from the guys from liip, here. This is a PHP package that comes pre-built for Yosemite (older versions works too) but it is just one line of code:

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

 

After that, everything is ready to work as expected. The configuration that cames with that installation is well suited for Symfony 2 development, but it should work just fine with other use cases.

Finally, if you need to use the updated PHP CLI, too, but you don‘t want to use the PHP version that comes with the OS, then you could also add to your .bash_profile or similar this line of code:

export PATH=/usr/local/php5/bin:$PATH

 

PHP-mac下的配置及运行

标签:

原文地址:http://www.cnblogs.com/kaifayuan/p/4295846.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!