deathlock
deathlock

Reputation: 2837

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

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?

Upvotes: 50

Views: 90522

Answers (6)

Umair Hanif
Umair Hanif

Reputation: 174

Step 1:

  • Click Browse Button

Step 2:

  • Go into xampp > php

Step 3:

  • Select php.exe

enter image description here

Upvotes: 3

Composer automatically detects the directory in which your php.exe file is located. mainly it is in C:\xampp\php directory if you are using Xampp server and C:\wamp\bin\php\php7.4.1 directory if using wamp server. If your composer browser don't automatically detects the location of php.exe then you can use your browse option to locate it.

Upvotes: 0

chobela
chobela

Reputation: 305

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

Upvotes: 2

wmrodrigues
wmrodrigues

Reputation: 473

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.

Upvotes: 3

Mathan Kumar
Mathan Kumar

Reputation: 942

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)

Upvotes: 70

Dinesh Yadav
Dinesh Yadav

Reputation: 201

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

Upvotes: 9

Related Questions