PhpStorm doesn't recognize my PHP CLI executable! Follow
This just isn't my day as far as configuring PhpStorm. In settings, under Languages & Frameworks > PHP > CLI Interpreter, when I enter the path to my PHP executable it says "PHP version: Not installed". (The path is C:\Users\[MYUSERNAME]\PHP\current\php.exe.) When I click the refresh icon next to the path I get the message "Failed to parse validation script output". There's nothing wrong with the executable. In cmd.exe I enter "php --version" and get this output:
PHP 7.4.3 (cli) (built: Feb 18 2020 17:29:57) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Restarting PhpStorm didn't help.
Please sign in to leave a comment.
OK, I should clarify that this is only a problem when editing IDE settings (i.e., at the welcome screen, go to Configure > Settings). When I open a project and go to settings it verifies my PHP installation.
Thanks for the update! That's true, this issue may appear in "Settings for new projects" configuration window.
Just in case, here is a ticket about it:
https://youtrack.jetbrains.com/issue/WI-51216
This tip REALLY needs to be in your installation instructions!
Put it here, like this
:2. Specify the PHP engine installation directory in the PHP Home field. Type the path manually or click the Browse button and choose the location in the Choose PHP Home dialog box, that opens.
PhpStorm displays the version of the PHP engine detected in the specified folder and the debugger associated with this PHP engine in the
php.ini
file.___
I just spent well over two hours trying to fix this, Googling multiple terms (you should see my search history on this!) and surfing Stack Overflow, Reddit, and every other relevant link that came up and THIS was the actual answer.
Until you fix it you need to let new users know that this may be their actual answer.