Total: £0.00

How To: Install Drush on Ubuntu 10.04

By marksams, 06/23/2011 - 00:00

How To: Install Drush on Ubuntu 10.04

Don't use sudo apt-get (with the default package repositories at least)

My first attempt at installation with 'sudo apt-get install drush' was too easy. Unfortunately I got an early version (prior to v3.0?) that didn't include the vset command I needed to take my site offline/put back online for my automated backup process of Drupal files and database. When I issued the command 'drush status' it didn't even tell me which version it was!

Download Drush

You can download the latest version of Drush from the Drush project page on Drupal.org. For me, this was v4.4.

Install/Configure Drush

  • Extract the Drush archive to /usr/local/lib/
  • Make drush executable: sudo chmod +x /usr/local/lib/drush/drush
  • Configure a symlink in the /usr/bin/ directory: sudo ln -s /usr/local/lib/drush/drush drush

Using Drush

  • Navigate to your web site folder e.g. /var/www/mysite
  • Type 'drush status' as a test
  • You should now be ready to use Drush

Check out the Drush web site for commands and syntax etc.


  • If you get an error like "/usr/bin/env: php: No such file or directory" then you must install php5-cli with 'sudo apt-get install php5-cli'.
  • If you get an error saying 'drush' is not installed then type the full path to drush or add it to your path variable.