VS Code Error: Cannot validate since a PHP installation could not be found. Use the setting ‘php.validate.executablePath’ to configure the PHP executable.
I am here, but could not find any PHP path:
Nick-B
November 22, 2023, 2:03pm
2
Hi @flywheellocal
There are some previous threads here that might be helpful:
Issue Summary
I’m running LocalWP on my Mac Book Pro, and I didn’t install PHP or Composer locally on my machine since LocalWP handles all of that. Also, I’m using VSCode for coding, and I get this error message whenever I edit a PHP file:
Cannot validate since a PHP installation could not be found. Use the setting 'php.validate.executablePath' to configure the PHP executable.
I installed the Xdebug + VS Code add-on and tried again, but I got the same error. And I got the following error when …
Hi @jim_hubbard
One of our Devs tested getting this working on a Windows machine with Local 7.2.1 and VSCode. They were able to get it working just by following the steps on the Xdebug Add-On page. The warning did pop up regarding not being able to validate due to an invalid PHP executable, but that’s able to be closed out and ignored.
Here are the steps taken for the initial install:
Install Local
Install the XDebug VSCode plugin
Create a new preferred site
Click the Add Run Configuration t…
system
Closed
February 20, 2024, 2:03pm
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.