简体   繁体   English

PhpStorm在运行时显示错误,指出内置Web服务器仅自PHP 5.4起可用

[英]PhpStorm give error when run say Built-in web server is only available since PHP 5.4

My Setup:- 我的设置:-

  1. Windows Version: Windows 7 Ultimate SP1 64-bit Windows版本:Windows 7 Ultimate SP1 64位
  2. XAMPP Version: 5.6.3 XAMPP版本:5.6.3
  3. Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ] 控制面板版本:3.2.1 [编译:2013年5月7日]
  4. PhpStorm 7.1.3 PhpStorm 7.1.3

I have been working on Netbeans for quite a long time and recently I ditched it because of its limited features. 我从事Netbeans的工作已经有很长时间了,最​​近由于功能有限而放弃了它。 Setting up a local env using Netbeans is fairly simple and I had no problem with it. 使用Netbeans设置本地环境非常简单,我对此没有任何问题。

So I installed PhpStorm 7.1.3 thinking it would quite easy to run my PHP web page in the same way when I was using Netbeans, but When I try to run my web page in PhpStorm 7.1.3 using its built-in webserver I get Error: 因此,我安装了PhpStorm 7.1.3,以为使用Netbeans以相同的方式运行PHP网页非常容易,但是当我尝试使用其内置的Web服务器在PhpStorm 7.1.3中运行网页时,我得到了错误:

Built-in web server is only available since PHP 5.4 内置Web服务器仅从PHP 5.4起可用

What I did is simply import the Project folder (which is in C:/... directory) in PhpStorm and try to run it on browser, but I couldn't get it to work locally. 我所做的只是在PhpStorm中导入Project文件夹(位于C:/ ...目录中),然后尝试在浏览器上运行它,但是我无法使其在本地运行。 I believe I have to set up Interpreter under settings, but how do I go ahead and what should I include? 我相信我必须在设置下设置解释器,但是我该如何进行操作以及应包括哪些内容?

When I run my web page using PhpStorm 7.1.3 the Error looks like 当我使用PhpStorm 7.1.3运行网页时,错误看起来像

当我按下运行按钮时,此窗口打开

and after that if I click "Fix" then this window is open 然后,如果我单击“修复”,则此窗口打开

按下固定按钮

Took me over half an hour to get this set up!! 花了我半个多小时来完成设置!! Should only have been a few minutes, most of it just telling PhpStorm where it was, not guessing WTF it wants. 应该只有几分钟,大部分时间只是告诉PhpStorm它在哪里,而不是猜测它想要的WTF。 I read all the pages on their website, so sad that. 我阅读了他们网站上的所有页面,真是可悲。

So, please, can you help me out here 所以,请你能帮我一下吗

Just download latest version of XAMPP and install that. 只需下载XAMPP的最新版本并进行安装即可。 It will start working fine after reconfiguration. 重新配置后它将开始正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM