windows - How to properly set PHP environment variable to run commands in Git Bash -


there few similar questions throughout site, none of them giving me answer i'm looking for.

what i'm trying install composer via git bash on windows machine has wamp.

i'm using following command:

curl -s http://getcomposer.org/installer | php 

this not working, 'php' not recognized. looked problem , realized windows not know 'php' is, , need set environment variable.

i go environment variable dialogue , enter 'php' variable , c:\wamp\bin\php\php5.3.8 value. correct? should targeting specific file or directory whole?

after doing this, try command again , fails because still not recognize 'php'. have tried putting file path command directly, didn't work either.

so curious doing incorrectly. path incorrect?

adding path path variable should fix that.

right click computer, go advanced settings, click environment variables edit path system variable.

add semi-colon , path php binary, i.e. ";c:\wamp\bin\php\php5.3.8"

finally, restart git bash updates path variable.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -