PhpStorm提示interpreter is not configured解决方法

初次安装PhpStorm软件编辑.php文件时,用浏览器调试显示502 Bad Gateway

PhpStorm提示interpreter is not configured解决方法 经验总结 第1张

返回PhpStorm软件,右下角提示"interpreter is not configured Please configure PHP Interpreter to use built-in web server",其实是没有配置好php程序,下面简单介绍一下解决方法:

此方法是使用webstorm自带服务器,端口号63342;

1.点击右下角的提示标签,打开PHP设置窗口;

PhpStorm提示interpreter is not configured解决方法 经验总结 第2张

2.点击CLI Interpreter右边的 ··· 按钮;

PhpStorm提示interpreter is not configured解决方法 经验总结 第3张

3.点击左上角的“+”选择Other Localhost >> 右侧PHP executable 后面的 ··· 按钮,选择你安装的PHP程序文件,点击“OK”。

PhpStorm提示interpreter is not configured解决方法 经验总结 第4张

4.然后再点击“OK”,返回浏览器刷新,就可以正常访问了。

PhpStorm提示interpreter is not configured解决方法 经验总结 第5张

此方法是使用wamp服务器,端口号80;

如果软件右下角没有提示,可以点击软件左上角 “File(文件)”>>Settings(设置)快捷键Ctrl+Alt+S>>找到Build,Execution,Deployment>>Deployment,点击“+”Name自己设置,Type:Local or mounted floder,点击“OK”

PhpStorm提示interpreter is not configured解决方法 经验总结 第6张

Connection>>下的Upload/download project files 选择你安装服务器的工程文件夹

PhpStorm提示interpreter is not configured解决方法 经验总结 第7张

Mappings>>Local  path:选择你所写网页的工程文件夹。此时Use this server as default要是灰色,如果不是,点击一下。

PhpStorm提示interpreter is not configured解决方法 经验总结 第8张

Deshun

推荐阅读:

Bootstrap 模态框(Modal)插件的基本应用

JavaScript、Jquery获取屏幕的宽度和高度

利用CSS变量实现炫酷的悬浮效果

解决老版本IE不兼容rgba的问题

CSS选择器 低版本IE浏览器的兼容

赞 (7)
分享到: +

评论 沙发

Avatar

换个身份

  • 昵称 (必填)
  • 邮箱 (选填)