Main menu

Feb 21 2011

Drush speeds up Drupal development and maintenance tasks. It’s a command line shell that let’s us execute common tasks like downloading, enabling, disabling and updating modules, clearing cashes…

It saves time to be able to run a command in the shell instead of clicking around in the interface.

We can set it up on our local machine (where we do our development). But we can also set it up on our hosting.

Requirements

For all I know, the only requirement is to have shell access to your shared hosting.

Priorweb provides shell access for all their shared hosting packages.

Installing drush

Below I’ll outline the simple steps to install drush on your Priorweb shared hosting account.

  1. Log in using the shell
    ssh username@hostname
    
  2. Go to your private folder
    cd private
    
  3. Download and unpack the latest release of drush
    wget http://ftp.drupal.org/files/projects/drush-All-versions-4.2.tar.gz
    tar xzfv drush-All-versions-4.2.tar.gz
    
  4. Test-drive it *
    /opt/www/account-name/web/private/drush/drush help
    
  5. Store it in your profile
    nano ~/.bash_profile
    
    add the following line:
    export PATH=$PATH:/opt/www/account-name/web/private/drush
    
  6. Test drive it again *
    drush help
    

* Test it by executing the help statement. If we get a listing of all the commands, it's working. We could execute any drush command, for that matter.
For the first test-drive, we use the absolute path to the drush command, to see if it works.
After adding drush to our path, we can just execute the commands.

Overview of all the commands

ssh username@hostname
cd private
wget http://ftp.drupal.org/files/projects/drush-All-versions-4.2.tar.gz
tar xzfv drush-All-versions-4.2.tar.gz
/opt/www/account-name/web/private/drush/drush help
nano ~/.bash_profile
add the following line: export PATH=$PATH:/opt/www/account-name/web/private/drush
drush help

1 comment

Default avatar
Juicy Couture outlet
Mon, 19/03/2012 - 07:16

The content of this field is kept private and will not be shown publicly