How can I configure correctly the php executable in linux Debian?

ayrton_satar

New Member
Joined
Apr 1, 2022
Messages
18
Reaction score
3
Credits
164
Hello, 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 problem 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
 


captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,913
Reaction score
1,969
Credits
18,126
can you not just play with php using web server via localhost ?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation


Latest posts

Top