Visual Studio Code: Spawn UNKNOWN

Viewed 10169
2 Answers

I encountered the same issue today. If someone is using Ubuntu and XAMPP then your path is /opt/lampp/bin/php. I was using /opt/lampp/php therefore VSCode was showing Error spawning PHP: spawn EACCES error as soon as my files were loading in the editor.

Either you are using XAMPP or have installed PHP alone on Ubuntu Linux, you can always run whereis php in your terminal to locate php path.

The problem has also been discussed here https://github.com/felixfbecker/vscode-php-intellisense/issues/25

I hope this helps developers!

Related