PHP PHPStorm 解决运行报错 502 Bad Gateway,配置PHP Interpreter,配置php.exe

原文:https://www.cnblogs.com/Percy_Lee/articles/9297036.html
原文:https://blog.csdn.net/VincentlVL/article/details/104124758

解决运行PHP文件时报错 502 Bad Gateway

环境:

PHPStorm 2019

方案一:

修改phpstrom的默认端口。
步骤:File—Settings—Build,Execution,Deployment—Debugger中,把Port改为自己的端口就行了

方案二:

配置PHP Interpreter。
步骤:File -> Settings -> Languages & Frameworks -> PHP -> CLI Interpreter这行 点击最右边的 三个小点图标 -> 在PHP executable这行 点击文件夹图标 -> 然后选择PHP.exe即可。

方案二 步骤截图:

设置

进入设置PHP文件的界面

选择php.exe文件

posted @ 2020-04-11 10:19  古兴越  阅读(718)  评论(0编辑  收藏  举报