Published: 7 years ago
How to Install Drush on H-Sphere enabled CentOS Server
Installing Drush is simple, for most people on most systems, but sometimes you get folks who like to have a control panel, such as H-Sphere. Nothing wrong with that, unless when you install Drush, you get the dreaded "can't find php" or similar message. What to do? Follow these steps after logging in to your server via ssh:
1 - Grad a copy of Drush and untar it in your shared folder
sudo wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-4.5.tar.gz | sudo tar -zxf - -C /usr/local/share
(Note, change the link above you the link to the latest version of drush on Drupal.org. You can do this by going to drupal.org/project/drush and on the download link, right-click and choose copy link location.)
2 - Create a symbolic link to where Drush can be found on your server
sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
3 - Get Drush to auto download the required "stuff"
Drush won't work yet as it won't know where to find php, so
4 - Open your bash_profile file and edit the PATH line from something like this:
to something like this (note the php path in this version):
5 - Reboot your server and YEE HAW!