Install Drush on your sever with Composer (without bleeding)

Follow this steps on your ssh command line with root access.

Step1. Install Composer Globally - One Drush for all Projects

  1. curl -sS | php
  2. mv composer.phar /usr/local/bin/composer

Step2. Then forget all step in and continue!

  1. mkdir /opt/drush6
  2. cd /opt/drush6
  3. nano composer.json

Step3. Write composer.json with below code:

  1. {
  2. "require": {
  3. "drush/drush": "6.*"
  4. }
  5. }

Step4. Run below command by order:

  1. composer install
  2. ln -s /opt/drush6/vendor/bin/drush /usr/local/bin/drush
  3. ln -s /opt/drush6/vendor/bin/drush.php /usr/local/bin/drush.php
  4. ln -s /opt/drush6/vendor/bin/ /usr/local/bin/

Step5. No Step! Done!

  1. drush status


Article Information
Article ID Categories Tags Levels Status