PHP Interpreter is not configured(configure PHP Interpreter)解决办法(转)
来源:互联网 发布:c语言四大圣经 编辑:程序博客网 时间:2024/06/05 16:46
php这么流行,不能不研究一下。首先得找到好用的工具,见网上大神们都推荐神器phpStorm,那我也追追风,下载了一个phpStorm 7.1。平时工作都是在mac系统,所以这儿只介绍mac系统神器的配置。
安装我就不用多说了嘛。
安装成功后,接下来就运行。
运行后当然是创建一个了新工程,简单一点,我们创建一个空工程。 刚才都说了,是空工程,那接着我们给它加点料,新建一个php文件,暂且命名为index.
接着我们给它点点内容,那是那样吧,最简单的,用helloworld.
<span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">1</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">2</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">3</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">4</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">5</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">6</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">7</span><span class="line-number" style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size: 13px; vertical-align: baseline; color: rgb(88, 110, 117) !important;">8</span>
接着我们点击运行
会出现一个对话框
下面有一个error,是说没有找到php解释器。点击后面的Fix,会出现如下对话框:
看到了吧,解释器设置。 mac系统是默认安装了php的,目录是在/usr/bin,那么我们点击后面的button,然后指定php解释器目录。
配置好后点击ok。
配置好后,就有解释器了。
理论上这样配置就已完成了,可是如果你点击下图右边中的chrome图标
你将会看502错误,
回到PhpStorm后,你会看到有一相警告,是说php-cgi没有找到
解决方法就是自己安装php,不用mac安装,这样就有php开发环境了。 安装很简单,直接运行一个命令, 需要几分钟,请慢慢等待。
新安装的php目录是/usr/local/php5/bin,接下来在PhpStorm中设置新安装的php解释器: PhpStorm->Preferences->PHP 会来到解释器设置页
设置我们安装的php解释器:/usr/local/php5/bin
这下配置完成,把鼠标放到PhpStorm右边区域,然后点击你电脑上安装了的浏览器,就会打开浏览器显示index.php的内容
如果想从网页中触发进行调试,需要安装插件。我用的是chrome, 需要安装Xdebug helper
到此,神器PhpStorm for Mac已配置完成,可以开始你的php之旅了。
- PHP Interpreter is not configured(configure PHP Interpreter)解决办法(转)
- PHP学习之PHPStrom 配置问题 PHP Interpreter is not configured(configure PHP Interpreter)解决办法
- php Interpreter is not configured
- 解决 PHP Interpreter is not configured Please configure PHP Interpreter to use built-in web server
- php Interpreter is not configured 解决方法
- PHP Interpreter is not configured(浏览器502 bad gateway)
- phpstorm interpreter is not specified
- pycharm之no python interpreter configured for project的解决办法
- PHPStorm Please configure PHP Interpreter to use built-in web server
- Interpreter
- Interpreter
- Interpreter
- Interpreter
- Project interpreter not specified
- (Windows)在phpstorm 配置php interpreter,搭建php debug环境
- no python interpreter configured for the project
- No python interpreter configured for the project
- configure: /bin/sh: bad interpreter: Permission denied
- java中浮点数
- 堆排序HeapSort
- HDU 4911
- 观察者模式
- Django models通过DateTimeField保存到MySQL的时间的时区问题
- PHP Interpreter is not configured(configure PHP Interpreter)解决办法(转)
- socket阻塞式IO和非阻塞式IO
- 数据仓库建模方法
- HTTP协议详解
- LeetCode(19) Remove Nth Node From End of List
- hdu 5363
- Swift学习笔记之字符串(二)
- C#下使用protobuf(Google Protocol Buffers)
- OS-6