如何使用PHP 5.5.14在优胜美地上启用fastcgi [英] How to enable fastcgi on Yosemite with PHP 5.5.14
问题描述
我在Mac OSX Yosemite 10.10上使用 PHPStorm 9 ,当我尝试在浏览器中打开项目时,它返回"502 Bad Gateway"错误.
I'm using PHPStorm 9 on Mac OSX Yosemite 10.10 and when I try to open the project in the browser it returns a "502 Bad Gateway" error.
在PHPStorm中,它表示未找到php-cgi
In PHPStorm it says php-cgi not found
Please ensure that configured PHP interpreter built as CGI program (--enable-fastcgi was specified)
I followed the answer by GotchaRob in this question, but it didn't help. Unfortunately I can't post comments yet, so I've created a new question.
如果有人可以提供帮助,我将不胜感激. 谢谢.
I would really appreciate if someone could provide some help. Thank you.
推荐答案
我使用此解决方案解决了此问题
i fix this problem with this solution
http://barratmp. blogspot.ru/2014/10/the-core-yosemite-php-version-is-5.html
但我仅安装php5.6
but i install only php5.6
brew install homebrew/php/php56
安装后为phpstorm中的php6.5开辟了道路
after installation pointed the way to php6.5 in phpstorm
这篇关于如何使用PHP 5.5.14在优胜美地上启用fastcgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!