fbpx

How to install DRUSH 8.x for Drupal 7 on a shared or dedicated server

These instructions are to share Drush amongst all sites in a shared server.

There are loads of resources on how to install Drush but it can all get a bit confusing, for example:

https://docs.drush.org/en/8.x/install-alternative/

This documetation is for Drush 8.

http://docs.drush.org/en/8.x/

# Browse to https://github.com/drush-ops/drush/releases and download the drush.phar attached to the latest 8.x release.

At this time of this writing it’s 8.2.1
wget https://github.com/drush-ops/drush/releases/download/8.2.1/drush.phar

# Test your install.
php drush.phar core-status

# Rename to `drush` instead of `php drush.phar`. Destination can be anywhere on $PATH.
chmod +x drush.phar
sudo mv drush.phar /usr/local/bin/drush

# Optional. Enrich the bash startup file with completion and aliases.
drush init

References:

http://docs.drush.org/en/8.x/install/
https://docs.drush.org/en/8.x/install-alternative/

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top