« Install or Move CKFinder Libraries so sites/all/libraries | Main | Read variables or datasets with names containing spaces »

January 24, 2013

How to install Drush on ITS servers

How to install Drush on ITS servers

--------------------
See http://drupal.org/project/drush README.txt
--------------------

1. SSH into ITS servers via the PHP-enabled host
$ ssh [uniqname]@[email webmaster@umich.edu for the hostname]

2. Go to your group or personal AFS space to install Drush. This document uses the personal space.
$ cd /afs/umich.edu/user/[]/[]/[uniqname]/Private

3. Download and unpack the latest, appropriate version of Drush given your Drupal install. Drush5 works for Drupal 6 and Drupal 7
$ wget http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz
$ tar -xzf drush-7.x-5.8.tar.gz
$ ls drush

4. Make the 'drush' command executable
- Note this diverges from the Drush README considerably because the "export PATH=" command is "bash" (Bourne Again SHell) syntax.
and the default shell on the PHP-enable host is the C-shell ("csh").

a) Add this command to you .login file
$ cd ~
$ nano .login
At bottom of file (where is specifies for customizations) add

set path=($path /afs/umich.edu/user/[]/[]/[uniqName]/Private/drush )

This command could also go into your ~/.cshrc file

b) Alternatively, if you already have a "~/bin/" directory, you could use the "ln -s"
command to create a symbolic file link (sym-link) in there for "drush"
with:

ln -s ~/Private/drush/drush ~/bin/drush

5. Test that Drush works

$ cd /path/to/drupal/install
$ drush help

Posted by kkwaiser at January 24, 2013 02:22 PM

Comments

Login to leave a comment. Create a new account.