Drush is a command line utility for advanced users administering Drupal websites. You can install Drush on GreenGeeks by following these steps.

1. Request SSH access for your account (or if you prefer, web-based terminal access is available in cPanel).

2. SSH to your GreenGeeks Account.

3. Run the following commands in this 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.

alias drush='~/drush/drush'

Reload your profile:

source ~/.bashrc

Installing/Configuring Composer

Change into the Drush working directory:

cd drush

Download, Install and Update Composer:

curl -sS | php
php composer.phar update
php composer.phar install

Test to see if it works:

drush core-status

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 will be happy to help. Opening a support ticket in GreenGeeks is the best way to reach us.


  1. Shane Roberson

    disregard above post I am old and forgot how env vars work….. let tis be a less to all of you who underestimate the power of PATH!!!

  2. Jake

    Great How-To and got me a working drush intall! Woot! Ran into two pieces that I’ll share in case someone else is hitting a wall.
    First: after the wget operation, the file I received was sans the trailing ‘.zip’. So I ran cp master && rm master && ls -lBoom. The is in place.
    Second issue: unzipping the ‘’ file created a drush-master/ directory which would break the chmod operation as the path is incorrect (unless I’m missing something and need to switch to decaf). If you ran the cmd I listed above check that there is a dir ‘drush/’ or ‘drush-master/’ (if you didn’t, run ls -l to check). If you got ‘drush-master/’ run cp -R drush-master/ drush/ && rm -R drush-master/ I’m a big fan of cp rather than mv as you can tell, as I have trust issues with my typing. Now you can run your chmod cmd and the rest of the How-To.

  3. Josh Dargie - GreenGeeks

    Hello Jake,

    Thanks for the insight, we will certainly update the article to make these instructions clearer for everyone.

  4. Chris Charlton

    For Drush 6.2, Composer is not only recommended for installation but it seems Composer is also a new dependancy even for manual installations. Folks on a Shared/Reseller account may be limited to Drush 6.1 or lower for now.

  5. Nikita Petrov

    Drush now requires Composer. To install it on GreenGeeks hosting, first of all you should go to your cPanel, click on “Edit php version”, and enable “phar” extention for your hosting.
    After that you should execute follow commands: (i assume you already followed instructions above and downloaded drush into ~/drush folder)

    mkdir bin
    curl -sS | php -- --install-dir=bin
    cd drush
    php ~/bin/composer.phar install

    It will execute installation of drush library. When the script will finish his work, check drush status:
    drush core-status

    Good luck!

  6. Josh Dargie - GreenGeeks


    Thank you for your heads up. I’ve prepared the draft update and we will insure this goes live shortly!

  7. Steve

    You also may want to add information about cleaning up after the installation. You can definitely remove Drush’s file. Can you also remove Composer’s /install directory and the composer.phar file?

  8. David Lark

    I just installed Drush on a GG shared account. There are some problems in the given procedure. 1: Install directory is drush-master, so chmod & alias commands must reflect that. 2: Composer needs to be installed in the Drush directory. 3: This installed version 9.0-dev . I might prefer a production version. At least I know a bit more now, and can fix it if I need to.

  9. Jim Coleman

    When I do this it keeps killing the php composer.phar update process. Googling says not enough RAM most likely. Everything else in the tutorial works up until the composer update process… how do I get around this? Thank you…

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.