Search code examples
phpphpstorm

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
  2. XAMPP Version: 5.6.3
  3. Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
  4. 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. Setting up a local env using Netbeans is fairly simple and I had no problem with it.

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:

Built-in web server is only available since 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. 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

This Window is open when I press the Run button

and after that if I click "Fix" then this window is open

press Fix button

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. I read all the pages on their website, so sad that.

So, please, can you help me out here


Solution

  • Just download latest version of XAMPP and install that. It will start working fine after reconfiguration.