Skip to content
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

Error spawning PHP: spawn EACCES #25

Closed
tjdraper opened this issue Nov 2, 2016 · 13 comments
Closed

Error spawning PHP: spawn EACCES #25

tjdraper opened this issue Nov 2, 2016 · 13 comments

Comments

@tjdraper
Copy link

tjdraper commented Nov 2, 2016

I’m running into this error and I’m not quite sure what to do about it. A search through the issues reveals nothing so could be unique to my setup?

screen shot 2016-11-02 at 10 27 44 am

@felixfbecker
Copy link
Owner

Check the permissions on the PHP executable

@tjdraper
Copy link
Author

tjdraper commented Nov 2, 2016

0755

@Kejjden
Copy link

Kejjden commented Nov 11, 2016

I got this problem when I had the wrong php.executablePath (and php.validate.executablePath) setting.
I was using /path/to/php/bin/ and changed it to /path/to/php/bin/php.

@felixfbecker
Copy link
Owner

@tjdraper Are you using this setting? if yes, what is it set to? This is very certainly a problem with your setup, not a bug in the extension

@felixfbecker
Copy link
Owner

Closing for lack of response

@hsnyc
Copy link

hsnyc commented Jan 22, 2019

Hi Felix, I have encounter this issue using a MAC. I have set php.executablePath to "php.executablePath": "/Applications/MAMP/conf/php7.2.8/" and I get this error. In this dir there is only two files: php.ini and pear.conf. Any suggestions are appreciated. Thank you.

@felixfbecker
Copy link
Owner

php.executablePath needs to point to a binary, not a directory.

@hoangnamitc
Copy link

image

hi guy, my dir php only image , How to set path for php.executablePath

tks

@sunverwerth
Copy link

Try typing which php in the terminal,

@Blair2004
Copy link

Blair2004 commented Jun 24, 2019

@sunverwerth this helped me to make this Extension works on Remote Server (Remote Development with VSCode). Thanks

@OmarMakled
Copy link

Try this

VS: Version 1.32.1 (1.32.1)
OS: macOS 10.14.5

  "php.executablePath": "/usr/local/opt/php@7.2/bin/php",
  "php.validate.executablePath": "/usr/local/opt/php@7.2/bin/php",

@wltrallen2
Copy link

@sunverwerth Thank you! I'd been searching for the solution for quite a while now and this was super helpful. Thank you! (Don't know why I didn't think of it. LOL. It was kind of a face palm moment.)

@CarlosArceo10
Copy link

@sunverwerth Thanks, your advice helped me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants