I have successfully installed composer, but when i try to install drush and modify the .~/.bashrc file it returns Content-Type: text/html when i run any kinda of drush command.

Anyone seen anything like this? Sorry can't be more specific but can get you any info you need to be helpful..

closed as too broad by Mołot, Scott Joudry, Krishna Mohan, Yusef, kenorb Nov 20 '15 at 17:45

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Here is a guide that may help you. Drush Installation – hazrat Oct 28 '15 at 17:38
  • That is the documentation I have followed. I should mention this is on a shared hosting box - Bluehost – SoundCheese Oct 28 '15 at 17:39
  • if you are installing it on remote server then its best to download zip file from there and paste it in bin. – Shabir A. Oct 28 '15 at 17:40

If you see Content-Type: text/html when running Drush commands, it means that you are running Drush with php-cgi instead of php-cli.

If you already have php-cli on your system, set the environment variable DRUSH_PHP to point to the full path of php-cli. If you do not have it installed yet, try installing it and see if that clears up your trouble (sudo apt-get install php5-cli on Ubuntu).

  • The php5-cli may be already installed. To find out path to installed php versions run 'locate bin/php' (on linux). – Peter Lozovitskiy Nov 20 '17 at 3:13

There are various ways for doing this:

  • If you are linux/ubuntu user you can simply do it with

    sudo apt-get install drush

  • if you are installing it on remote server just download the latest zip file from github and paste it in you bin directory on server home folder.

Hope this helps!

  • Both suggestions will only work with Version prior to 7. In Ubuntu / Debian you'll end up with a pretty old version. Drush is not supported by Linux package management systems since 7. github.com/drush-ops/drush/issues/1628 – rugar Oct 28 '15 at 20:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.