Reputation: 325
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.
Upvotes: 4
Views: 5361
Reputation: 456
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 php7.3-cgi
Upvotes: 0
Reputation: 51
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
Upvotes: 5