Following steps installed drush in my windows 7 PC's & laptop seamlessly. Please ignore 1st two steps if you already have a web-server-stack running in your machine.
- Install XAMPP-5.6-VC11
- Install GIT
- Install composer
- Install drush using compser in git-bash type: composer global require drush/drush
- in bash - navigate to sites folder
- check environment by typing following commands in bash one by one
php --version mysql --version composer --version drush --version
Incase any of the above commands returns error, make sure to update environment variables accordingly.
Make sure that your environment variables have these entries (depending upon your install location & user name)
C:\Users\Admin\AppData\Roaming\Composer\vendor\bin;
C:\Users\Admin\AppData\Roaming\Composer\vendor\drush\drush\;
C:\Program Files\Git\cmd;C:\ProgramData\ComposerSetup\bin;
C:\xampp\mysql\bin;
C:\xampp\php;
- Finally in
sites\defalut\settings.php
change the host fromlocalhost
to127.0.0.1
Hope this helps