php-cgi的phpStorm问题 [英] phpStorm problems with php-cgi
问题描述
因此,我最近更改为ubuntu,并且尝试再次设置我的环境,并设法安装了LAMP和phpmyadmin和phpstorm.
So I recently change to ubuntu and I am trying to setup my environment again and I manage to install LAMP and phpmyadmin and phpstorm.
但是我无法执行的操作是,当我尝试运行程序时,从phpStorm运行php脚本,页面显示"502 Bad gateway"错误,当我返回phpStorm时,它告诉我php -cgi未找到.
But what I can't mange to do is to run the php script from phpStorm when I try to run the program the page gives me a "502 Bad gateway" error and when I go back on phpStorm it tells me that php-cgi was not found.
我已尝试解决问题,但找不到任何可靠的答案,我现在很困惑
I have tried to fix the problem but couldn't find any solid answer and I am so confused right now
我还成功添加了php解释器和xDebug
Also I have successfully added the php interpreter and the xDebug
推荐答案
在Linux ubuntu上
on linux ubuntu
对于PHP5:sudo apt-get install php5-cgi
对于PHP7:sudo apt-get install php7.0-cgi
这篇关于php-cgi的phpStorm问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!