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.
- Log in using the shell
ssh username@hostname
- Go to your private folder
cd private
- 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
- Test-drive it *
/opt/www/account-name/web/private/drush/drush help
- Store it in your profile
nano ~/.bash_profile
add the following line:export PATH=$PATH:/opt/www/account-name/web/private/drush
- 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
The content of this field is