michaelchelen.net — For Drupal 5 and 6 using Drush 3. Tested with Drupal 6.19 and Drush 3.3 on Debian Etch Linux 4.0.
Steps
Download DrushThe HEAD version from the project page can be used with all Drupal versions. Drush will be installed to ~/drush. Download with WGET:
cd
wget http://ftp.drupal.org/files/projects/drush-All-Versions-HEAD.tar.gzExtract the archive:
tar -xvzf drush-All-Versions-HEAD.tar.gz
Set up an AliasCreate an alias for Drush in .bash_profile (this can also go in .profile or .bash_aliases ) echo "alias drush='php ~/drush/drush.php'" >> ~/.bash_profile
Optionally specify a PHP path (version 5.2 or greater required by Drush)
echo "alias drush='/usr/local/php5/bin/php ~/drush/drush.php'" >> ~/.bash_profile
Load aliasessource .bash_profile(or reconnect)
Download DrupalDrupal will be installed to ~/drupal cd ~/drush dl drupalMake a symlink so the webserver has a constant path to ~/drupal ln -s ~/drupal-6.19/ ~/drupal
Install DrupalFor Drupal 6.3+ Before starting the web-based install:cp ~/drupal/sites/default/default.settings.php ~/drupal/sites/default/settings.php
chmod 666 ~/drupal/sites/default/settings.phpOr for multisite:mkdir ~/drupal/sites/example.com
cp ~/drupal/sites/default/default.settings.php ~/drupal/sites/example.com/settings.php
chmod 666 ~/drupal/sites/example.com/settings.phpVisit example.com in a web browser to complete the installation.
Test DrushShow current site information: cd ~/drupal
drush statusOr for multisite:cd ~/drupal/sites/example.com
drush status
Example CommandsDownload modulesdrush dl views cck ogEnable modulesdrush enable views cck og
yUpdate modulesdrush upCheck modules statusdrush smUpdate Drupal core. For example, 6.18 to 6.19cd ~/drush
dl drupal
rm -r ~/drupal-6.19/sites/
mv ~/drupal-6.18/sites/ ~/drupal-6.19/
rm ~/drupal
ln -s ~/drupal-6.19/ drupalDownload a theme
drush dl ablogthemeDownload a specific version, such as Drupal 5.20drush dl drupal-5.20
Tips
Drush stands for Drupal Shell
Sources and Citations
Drush http://drupal.org/project/drush
Drush Readme http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/drush/README.txt?view=markup
Drush - Drupal Shell utility http://drupal.org/node/477684
from wikiHow - The How to Manual That You Can EditArticle provided by wikiHow, a wiki how-to manual. Please edit this article and find author credits at the original wikiHow article on How to Install Drupal With Drush. All content on wikiHow can be shared under a Creative Commons license.
Sep 5, 2010 View in Crawl 4
No comments yet
It's quiet in here... can you hear the echo?