How to enable fastcgi on Yosemite with PHP 5.5.14

2019-05-04 02:10发布

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.

2条回答
啃猪蹄的小仙女
2楼-- · 2019-05-04 02:46

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

查看更多
做个烂人
3楼-- · 2019-05-04 02:52

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

查看更多
登录 后发表回答