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.


By billmegelich on

Great post....really love to read you blog post and how you have many to write it. Today through this comment comment I am share you information post about Bill Megelich and I think you will really love it after reading it.

By anirudraydv on

I created a typical faster way to the batch file for each user by getting how to split screen windows 10 individual subsequently to visit to their account as well as following the instructions online page Windows 10.

By Maeve Beier on

It was rather hard for me to install Drush in my Ubuntu but you mentioned here the perfect tips of its installation. We should also try myassignmentwriting.com.au research report assignment to get good grades in our college. Well, your help is also pretty appreciative.