Personally I’m not a fan of installing Drush via composer. For my AliCloud Plesk VPS I did the following which was quick and simple.
Download a Drush release from Github to user folder$ wget https://github.com/drush-ops/drush/releases/download/8.1.17/drush.phar
- Rename drush.phar to drush
$ mv drush.phar drush
- Find the bin directory
$ echo $PATH
shows /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
I’ll go with /usr/local/bin
- Move drush to the bin
$ mv drush /usr/local/bin/drush
- Change permissions to
$ chmod +x /usr/local/bin/drush
- Test with
$ drush version
This is based on Pantheons post
Was this article helpful?
YesNo