HOW-TO Set up Drush on a GoDaddy shared hosting plan

Let me start by saying if you know what Drupal and Drush are, then you know this won't work unless you have SSH access to your box.
Once you have SSH access to it, the deployment of Drush is fairly simple.

  1. SSH into your box.

    > ssh user@mydomain.com

     

  2. Create an alias to run your dush script.

    > alias drush='/usr/local/php5/bin/php ~/drush/drush.php'

     

  3. Test that it works.

    > drush help

     

  4. Now make it 'permanent' by adding it to your ~/.profile file.

    > echo alias drush='/usr/local/php5/bin/php ~/drush/drush.php' >> ~/.profile

     

  5. Now logout and log back in. Confirm the alias is still there. Enjoy.

    > exit
    > ssh user@mydomain.com
    > drush help

     

Comments

Installing drush on godaddy shared hosting

Thanks for your help. There wasn't alot of information on this out there.
There were a few other things i had to do to get everything functioning properly.

  • also added 'export COLUMNS' to .bashrc
  • added a php alias to ensure drush scripts were trying to access the php executable and not the php-cli executable that is not available to shared linux environments at GoDaddy

You can check out the tutorial of the steps i took at:
Installing drush for Drupal via SSH to your GoDaddy shared Linux Hosting
 
Thanks again for your help!
Joshua Riddle