How to enable fastcgi on Yosemite with PHP 5.5.14

蹲街弑〆低调 提交于 2019-12-07 11:25:35

问题


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.

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.


回答1:


i fix this problem with this solution

http://barratmp.blogspot.ru/2014/10/the-core-yosemite-php-version-is-5.html

but i install only php5.6

brew install homebrew/php/php56

after installation pointed the way to php6.5 in phpstorm




回答2:


I couldn't make it work with p.Omelchenko's solution, so I tried what is suggested in this website by aswin_0348 and it worked like a charm!

Just sudo apt-get install php5-cgi



来源:https://stackoverflow.com/questions/31400916/how-to-enable-fastcgi-on-yosemite-with-php-5-5-14

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!