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