Installing Drush on Dreamhost

DrupaliconI finally looked into giving Drush a spin today.  Drush stands for Drupal Shell and is a package manager for Drupal which makes it easy to download, install, and update Drupal modules on your Drupal website.  The command is accessed via SSH the same way you would access any other shell program.  But the question is how do you get it installed and working?

The instructions that come with Drush are great for local installs, however I wanted to get it working on my Dreamhost account.  Dreamhost uses PHP4 by default for the SSH terminal, so following the default Drush instructions resulted in an error.

Doing some digging I found that two methods to get it working; you can either modify the command alias or modify your environment variable.  Both work however I settled on the latter which involves adding the following to your.bash_profile after downloading and decompressing the Drush tarball into your account.

export PATH=/usr/local/php5/bin/:$PATH
alias drush='/fullpathto/drush/drush'

The full path to drush can be anywhere, however it is easiest to just place it at the root of your account.  If thats the case you would just use the following for your alias.

alias drush='/home/username/drush/drush'

Once that’s finished, save the file and run $ source .bash_profile to reload your environment variables, then run $ drush to get a list of possible commands.

This entry was posted in Other Stuff and tagged , , . Bookmark the permalink.

Comments are closed.