Git Product home page Git Product logo

Comments (13)

Kejjden avatar Kejjden commented on July 29, 2024 74

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.

from vscode-php-intellisense.

sunverwerth avatar sunverwerth commented on July 29, 2024 23

Try typing which php in the terminal,

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024 6

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

from vscode-php-intellisense.

OmarMakled avatar OmarMakled commented on July 29, 2024 6

Try this

VS: Version 1.32.1 (1.32.1)
OS: macOS 10.14.5

  "php.executablePath": "/usr/local/opt/[email protected]/bin/php",
  "php.validate.executablePath": "/usr/local/opt/[email protected]/bin/php",

from vscode-php-intellisense.

Blair2004 avatar Blair2004 commented on July 29, 2024 3

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

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024 1

Check the permissions on the PHP executable

from vscode-php-intellisense.

wltrallen2 avatar wltrallen2 commented on July 29, 2024 1

@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.)

from vscode-php-intellisense.

CarlosArceo10 avatar CarlosArceo10 commented on July 29, 2024 1

@sunverwerth Thanks, your advice helped me

from vscode-php-intellisense.

tjdraper avatar tjdraper commented on July 29, 2024

0755

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

@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

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

Closing for lack of response

from vscode-php-intellisense.

hsnyc avatar hsnyc commented on July 29, 2024

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.

from vscode-php-intellisense.

hoangnamitc avatar hoangnamitc commented on July 29, 2024

image

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

tks

from vscode-php-intellisense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.