brapifra / vscode-phpserver

Visual Studio Code extension to quickly serve your PHP projects :)
89 stars 29 forks source link

PHP Not Found (Ubuntu) #131

Open NetlyLLC opened 1 year ago

NetlyLLC commented 1 year ago

Hello I am on Ubuntu 22.04 as my computer and I have set these settings image image However when I serve project, it says PHP Not Found. Would someone be able to help? I could provide more information if needed.

christan-duplicate commented 1 year ago

windows:Me too.

Muschke commented 1 year ago

same problem, for windows you should try to set the path via environment variables.

Muschke commented 1 year ago

I solved this issue. I previously had VS code installed from the software center. I installed it using the command line (sudo snap install --classic code). Than I added the correct path in the preference>settings>php>exectable path (for me /usr/bin/php), but check it with "which php" in command line. Than I just added Intelliphense and PHP live server and everything just worked. I didn't even had to disable the PHP Language Features.