How to run php code in VSCode in Ubuntu 20.04, when it was installed with XAMPP server?
I want to execute php files on VSCode (php was installed with XAMPP server), so I find the executable path of my php with whereis php, after this I got: php: /opt/lampp/bin/php , so on VSCode settings.json file I added:
"php.validate.executablePath": "/opt/lampp/bin/php"Then when using Code Runner VSCode extension, when trying to right clic and Run Code, I got /bin/sh: 1: php: not found on console.
I wonder how to run php code in VSCode.
2 Reset to default