Updated: March 13 2018
Drush is a command line utility for administering Drupal websites, For advanced users, drush makes managing your Drupal website more efficient. Version 5 of Drush can administer Drupal versions 6, 7 and 8.. Installing Drush is easy on GreenGeeks by following these steps:
Step 1: Request SSH access for your account.
You can request access for SSH by following our tutorial.
Step 2: SSH to your GreenGeeks Account
Step 3: Go to the Drush page and copy the link address for the version you would like.
Step 4: Run the following commands in order:
Navigate to your home directory:
Download the Drush tar:
Extract the tar:
Remove the file:
Correct the permissions on the file:
chmod u+x drush/drush
Create the drush alias by editing your .bashrc file in your home directory:
nano ~/.bashrc -or- vim ~/.bashrc
add the following line to the bottom of your .bashrc file.
Reload your profile:
Change into the drush working directory:
Download, Install and Update Composer:
curl -sS https://getcomposer.org/installer | php
php composer.phar update
php composer.phar install
Test to see if it works:
I’m encountering errors installing Drush!
When you enter the last command, you should see Drush running properly. However, you may encounter shell_exec errors which our support team will need to address for you.
If you have any problems installing Drush including any shell_exec errors, please contact our support team and we would be happy to help. Opening a support ticket in your Account Manager is the best way to reach us.