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 https://getcomposer.org/installer | php
  2. mv composer.phar /usr/local/bin/composer

Step2. Then forget all step in drush.org 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/drush.complete.sh /usr/local/bin/drush.complete.sh

Step5. No Step! Done!

  1. drush status

Enjoy!



Article Information
Article ID Categories Tags Levels Status
#15
Freemium
Solved