'How can I configure correctly the php executable in linux Debian?
I have been with some problems with the PHP executable configuration in Visual Studio Code. I read some posts of people that had the same issue as mine, but did not help me at all. The error is always the same (even with the right file that is considering by PHP executable):
Cannot validate since /usr/bin/php8.1 is not a valid php executable. Use the setting 'php.validate.executablePath' to configure the PHP executable.
I know that I have to configure a file named settings.json, so I went there, and in the terminal of my OS (GNU/LINUX Debian) I use the command whereis php to find the PHP executable and include the path at "php.validate.executablePath" but the error persists even after this procedement. Friends, what can I do to solve the problem?
I tried set diferents paths to configure, but did not works.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
