This article discusses how to install Drush on InMotion Hosting servers. You will need to have SSH access and root access on your account in order to install Drush. If you do not yet have root access, please see our article on obtaining root access for your account. The steps below assume you have the ability to connect to your server via SSH. If you do not have the ability to do so, you will need to enable SSH on your server and then add your IP to the firewall so it can connect.

How to install Drush

  1. Connect to your server via SSH.
  2. Once connected, confirm that PEAR is on the server. You can do this by typing the command "pear version" in your command line. You should have no issue with this as all our servers have PEAR on them by default. The command should produce results similar to the example below.
    $ pear version
    PEAR Version: 1.9.4
    PHP Version: 5.4.20
    Zend Engine Version: 2.4.0
  3. Once confirmed, simply type in the command "pear channel-discover pear.drush.org" on your console. This will initialize the channel and add it to your PEAR channel list.
    $ pear channel-discover pear.drush.org
    Adding Channel "pear.drush.org" succeeded
  4. After adding the channel, we now need to install Drush. This is done by typing "pear install drush/drush" in the command line. You should see the install succeed as the code below demonstrates.
    $ pear install drush/drush
    downloading drush-6.2.0.0.tgz ...
    Starting to download drush-6.2.0.0.tgz (505,989 bytes)
    ................................done: 505,989 bytes
    install ok: channel://pear.drush.org/drush-6.2.0.0

Installing a specific version of Drush

The steps above will install the most current stable version of Drush onto your server. You may, however, need a specific version of Drush installed. For example, if you are using php version 5.2, you cannot use Drush version 6. You will need to install version 5.9. To do this, simply enter the install command as shown below.

$ pear install drush/drush-5.9.0

Uninstalling Drush

Should things go wrong, or you simply decide that you no longer wish to use Drush, you can uninstall it from your server with the "pear uninstall" command. Below is an example of how to uninstall drush.

$ pear uninstall drush/drush
uninstall ok: channel://pear.drush.org/drush-6.2.0.0

You now know how to install and even uninstall Drush from your server here at InMotion Hosting. Should you have any further questions, be sure to take a search through our Community Support Center. If you cannot find your topic there, be sure to ask the team a question and we will get back with you as soon as possible.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-10-16 11:01 am

How can one enable or install drush on a shared-hosting server?

According to the cited arcitle in your post, to set the root password seems possible on a shared-hosting server (to my surprise!), but the actual instruction didn't seem to be applicable: http://www.inmotionhosting.com/support/website/ssh/root-access-faq

I suppose there are many users (or almost all the Drupal users) who want to use Drush and I am one of them, so I am guessing it is available somewhere...?  If not, may one just install it from the source code in their home area on a shared-server?

Staff
9,631 Points
2014-10-16 12:52 pm
Hello Masa,

Thank you for your drush question. While we are considering adding drush on shared servers, at this time it is not available.

You will need a VPS, or Dedicated server to get root access, and install drush.

If you have any additional questions, feel free to post them below.

Thank you,
John-Paul
n/a Points
2014-10-16 3:47 pm

Thank you, John-Paul!  That is clear to me now.  As VPS is not an option for me, I am looking forward to Drush being installed in shared severs before long…

n/a Points
2014-10-24 6:38 am

Oh inmotion, how you tease with such great servers and software but no Drush on shared hosting??!!  Very close to perfect habitat for Drupal developers who have wandered the wilderness of web hosting, please reconsider Drush on shared!

Staff
19,455 Points
2014-10-24 8:11 am
Hello Phoenix,

We are definitely moving in that direction. We are currently making many improvements to our shared hosting and Drush is on the list! Unfortunately I do not yet have a time frame, but it is coming.

Kindest Regards,
Scott M

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

5 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!