Skip to content

Instantly share code, notes, and snippets.

@chssweb
Last active August 29, 2015 14:02
Show Gist options
  • Save chssweb/86ff0c5069d37c2951b9 to your computer and use it in GitHub Desktop.
Save chssweb/86ff0c5069d37c2951b9 to your computer and use it in GitHub Desktop.
Install composer, and then drush

Composer and Drush install on Host

Composer

  1. cd ~
  2. pwd - make sure you are at the right place you expect to be
  3. Make sure you have a bin directory (chost appears to have this by default)
  4. curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
  5. sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
  6. source $HOME/.bashrc
  7. Try running composer.phar from any directory - you should see its default output. If not echo $PATH and make sure the correct paths to composer added

Install Drush

Composer way

The below command can be launched in the ~ directory. Drush (and any other tool you install with composer) are inserted in the .composer/vendor directory (which we added to the path in the f)

  1. composer.phar global require drush/drush:6.* (see above link for which version to use)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment