InMotion Hosting Support Center

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" on your console. This will initialize the channel and add it to your PEAR channel list.
    $ pear channel-discover
    Adding Channel "" 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- ...
    Starting to download drush- (505,989 bytes)
    ................................done: 505,989 bytes
    install ok: channel://

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://

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.

Was this article helpful?

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

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2016-04-07 4:33 pm

Drush 8 and above require composer.Any plans on making composer available in shared hosting?

10,762 Points
2016-04-08 8:09 am
Hello, Kingsley. Thank you for your question about Drush 8 and Composer. At the moment we have no plans to make Composer available in shared hosting.
n/a Points
2016-12-22 12:02 pm

Hi Christopherm,

Could you please let me know, still at present time we can not use Drush on Drupal 8 site Or something has been done in that way. I am looking for Drupall 8 hosting and looking for Drush facility as Drush solves many issues for non-technical people. Thank in Advance.

31,313 Points
2016-12-22 12:57 pm
Unfortunately, we do not currently have plans for implementing Drush and Composer our shared servers.

Thank you,
n/a Points
2017-10-29 12:51 pm

It is now close to the end of 2017. Drupal 8 will have been out for two years now. I have root access to my VPS. I was able to install Composer, but for whatever reason when I follow the procedure to install drush, it does not install on the server.

I tried this with Composer at the beginning when first working with Drupal 8 but it would not install.

I'm going to try again soon insofar as I plan to do development directly on my server. But if there is no path to do that, it will be a big problem.

13,821 Points
2017-10-30 7:53 am
You are able to implement and configure Drush and Composer on your VPS. However, its not available in shared.
n/a Points
2016-02-29 5:13 pm

I followed the directions, but when I typed pear channel-direction, I received this error message:

Discovering channel over http:// failed with message: channel-add     : temp_dir is not writable: "/root/tmp/pear" - You can change this location with                                                 "pear config-set temp_dir"

Trying to discover channel over https:// instead

Discovery of channel "" failed (channel-add: temp_dir is not writa                                                ble: "/root/tmp/pear" - You can change this location with "pear config-set temp_                                                dir")

Could you advise? I assume I'm on a shared hosting account that would allow this?

43,761 Points
2016-02-29 5:21 pm
Hello Pat,

Unfortunately shared servers do not allow root access, which is needed to install Drush in this manner.

Kindest Regards,
Scott M
n/a Points
2015-11-11 11:05 am

It is not working now. Getting the below error


 Execution of '/bin/pear channel-discover' returned 1: Discovering channel over http:// failed with message: channel-add: Cannot open "" (File not valid (received: HTTP/1.1 404 Not Found



42,337 Points
2015-11-11 12:57 pm
Hello Sunil,

Sorry for the problem that you're having. Can you provide a little more information? Is it related to Drupal? The messages we're seeing do not appear to be Drupal-specific. It's possible that there may be permissions problems or that you need to make sure that the files exist. The last error indicates that a particular file is not found.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.
n/a Points
2015-06-24 10:05 am

Thanks for adding drush support to shared hosting.I am so impressed.You guys rock!

n/a Points
2015-03-20 9:31 pm

Let me add my voice to the InMotion Drupal chorus: Give Us drush on your shared servers, please!!

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!

43,761 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
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-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:

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?

31,313 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,

Post a Comment

Email Address:
Phone Number:

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

17 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!