Unable to be productive with local testing in PHPStorm
PHPStorm 2016.3.2
I have PHP 7.0.15 installed on a Win7 machine. In PHPStorm, I set the interpreter (Settings->Languages/Frameworks->PHP) to point to php.exe within the folder where I have PHP installed. C:\php-7.0.15\php.exe
Underneath that I have a red exclamation mark and it says "PHP Version: Not Installed". No idea why it says that.
I'm simply trying to use the built-in web server to run a simple .php file that contains phpinfo();
Constantly getting 502 after around a minute of watching the cursor spin. When I try debugging the file it tells me interpreter is not specified or invalid
But, I did specify the interpreter, in settings. So why is it telling me there is no interpreter specified, or the interpreter is invalid? I've searched and tried various things for hours over a three-day period and have not been able to get this to work, at all. I can't run Apache on my machine here at work, it is not allowed - so I have to get this working with the built-in PHPStorm web server and PHP installed on my Win7 machine.
Please sign in to leave a comment.
Hello,
> Underneath that I have a red exclamation mark and it says "PHP Version: Not Installed". No idea why it says that.
Can you open your command line and run "C:\php-7.0.15\php.exe -v"? What would be the output of that?
Thanks - I was missing MSFT C++ redistributable runtime.
So, now the debugger works, and when I run the simple test.php file in PHPStorm, it shows the output and it returns 0
But, when I try to run it in the browser it continues to give the 502 "bad gateway" error. I tried using both php.exe and php-cgi.exe as the interpreter. I don't know what else to do at this point, I can't get the php file to execute successfully in the browser.