COMPOSER: choose the command line php you want to use. There is nothing there

65,573

Solution 1

If you are using wampp do this:

  1. Click the browser button.

  2. Then select your file path like following path.

(C:\wamp\bin\php\php5.4.12\php.exe)

If you are using xampp do this:

  1. Click the browser button.

  2. Then select your file path like the following path.

(C:/xampp/php/php.exe)

Solution 2

Yes you have to select php.exe from your xampp folder if you are using localhost. choose this path... xampp > php > php.exe

Solution 3

I came across the same screen. I'm using Vertrigo Server and all the things that I have done was pick the php.exe file path by clicking on "Browse..." button (on my machine it is on C:\Program Files\VertrigoServ\Php\php.exe). Hope that helps.

Solution 4

If you are using Ammps on Windows, you can click Browse -> 'C' -> Program Files -> Ammps -> 'Your PHP Version' -> php.exe, Worked for me.

Share:
65,573
deathlock
Author by

deathlock

Regular user.

Updated on December 17, 2021

Comments

  • deathlock
    deathlock over 2 years

    I'm using the Composer Windows installer and it brings me to this window,

    enter image description here

    There is nothing in the dropdown, but I'm not sure where to pick the correct command-line PHP. Should I direct it to the php.exe in XAMPP folder?

  • Muhammad Ali
    Muhammad Ali over 2 years
    great answer @dinesh
  • Nico Haase
    Nico Haase over 2 years
    Please share more details. What do you mean by "here"?