-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to point to PHP executable? #37
Comments
The path needs to point at the php executable. (See https://code.visualstudio.com/Docs/languages/php.) |
From @TRE8 on December 1, 2016 17:43 Thanks, I see in the docs it says But I'm on a Mac :/ Can't seem to figure out where the PHP executable is located. |
Have you tried |
From @TRE8 on December 1, 2016 23:43 Good idea and I tried your suggestion but still get the message
I tried adding ~ before "/Application" and got the following message:
|
Have you tried |
|
@klaasvw - your suggestion of using php.executablePath instead of php.validate.executablePath works in my case. Thanks! |
"php.executablePath":'/usr/local/bin/php', I did it as above, but block still not work |
I think this plugin does not detect php on linux environment or cannot use it. Because I set
and it still does not work. |
Same issue here caused by having docker persistent storage in the root of the project. Also, this is what I've got in my settings
|
Mac user. Good evening guys. I am struggling to have xdebug working and I would appreciate some help. Furthermore, I would like to disable All this pain, as I said, in order to have 'listen xdebug' working correctly. So far, it works only if I do restart constantly my MAMP servers. Thank you so much for your help. D. |
Within the Terminal, run Type
In Terminal, run |
I have just updated to macOS Big Sur 11.5.2 and also installed PHPIntellisense. I am not sure what is broken but VSCode seems to be pointing to the wrong PHP. I tried editing settings.json changed both php.executablePath and validate.executablePath and none made any difference I have asked a question here on stack overflow: |
I thaught I was close but no, Razan, the last was good until /Users/.../.bash_profile:1: permission denied: /Users/.../.profile |
THX |
From @TRE8 on December 1, 2016 5:42
Steps to Reproduce:
Hi, I'm trying to point VSCode to my PHP executable. I'm on a Mac and using MAMP Pro, which I believe is the PHP executable that I'm suppose to point to.
I've gone into settings.json and added this line:
Here's an image to help if needed.
Not sure if I entered the file path wrong or if I should use a different one, it doesn't seem to click. I still get a message that PHP executable is not connected to VSCode.
Also, new to Github and trying to tag this as a question but don't see an option to tag a label to this post.
Copied from original issue: microsoft/vscode#16309
The text was updated successfully, but these errors were encountered: