How to set php executable path php.validate.executablePath in vscode when php is set inside docker container?

Nicolas Takashi picture Nicolas Takashi · May 3, 2017 · Viewed 70.1k times · Source

I have a development environment based in docker.

Everytime that I open VSCode I get this message:

Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable.

Somebody know how to set php.validate.executablePath in this case?

I have no idea how to do it.

Answer

Mohamed Elrashid picture Mohamed Elrashid · Sep 18, 2017

Here is a screenshot.

  • Don't forget to escape \
  • You don't have to add it to the Path

set php.validate.executablePath snapshot