Error: PHP home is not specified or invalid. Press "Fix" to edit your project configuration

I get this error when trying to run a scratch file. I can run and debug my projects easily but the scratch file doesn't run. Not quite sure how to set the "home".

 

2
9 comments

I got the same error, but i'm trying to debug a drush command.

0

I just found that my php7.2 does not have this issue, only my php7.3. Trying to figure out what is different in the set up.

0

Could you please confirm if both PHP CLI interpreters are detected correctly in IDE? Like:

 

0

For me (macOS), Jetbrains was pointing to an old binary location. Homebrew had done an incremental update to PHP (so the executable "moved"). Just had to go and update the CLI interpreter's PHP Executable to point to the new folder (in my case /usr/local/Cellar/php@8.0/8.0.22/bin/php instead of /usr/local/Cellar/php@8.0/8.0.16_1/bin/php)

 

15

Had the same problem and the above saved me some time. Nice catch, Btraas!

0

I had the same problem.  I ended up pointing to the soft link in /usr/local/bin so I don't have to redo for minor updates.  Thank Btraas!

0

Good catch. Thanks Btraas.

0

Please sign in to leave a comment.