WebFaction
Community site: login faq
1
1

Besides the lack of using sudo... how exactly would I be
able to run the following code (is it possible?)
to set up drush for command line drupal calls.

--example install code--
cd /usr/local/share/
sudo wget http://ftp.drupal.org/files/projects/drush-All-versions-3.0.tar.gz
sudo tar zxvf drush-All-versions-3.0.tar.gz
sudo rm drush-All-versions-3.0.tar.gz
sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
sudo drush


-Thanks!-

asked 10 Nov '10, 11:16

cntmedia
1113
accept rate: 0%


Connect to the server via SSH and enter the following commands:

cd ~
curl -sS https://getcomposer.org/installer | php54 -- --install-dir=$HOME/bin
wget https://github.com/drush-ops/drush/archive/6.x.zip
unzip 6.x.zip
ln -s ~/drush-6.x/drush ~/bin/
echo "export DRUSH_PHP=php54" >> ~/.bash_profile
source ~/.bash_profile
hash -r
permanent link

answered 10 Nov '10, 11:52

aaronh ♦♦
1.3k3
accept rate: 34%

edited 07 Mar '14, 23:29

seanf
12.1k21636

Thank you so much! -- awesome stuff -- :)

(10 Nov '10, 13:18) cntmedia

Replaced with latest version of Drush and it worked great. At this time, it's: http://ftp.drupal.org/files/projects/drush-7.x-4.4.tar.gz

(30 Jun '11, 10:25) keltic

Thank you, worked perfectly for me as well, using current drush version. Downloaded with the command

wget http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz
(12 Mar '13, 20:02) graemehunter

Updated answer to use latest versions of everything.

(08 Mar '14, 01:57) seanf

To install Drush ready for Drupal 8, this worked for me:

SSH into your server. Now download the Drush release you want:

wget https://github.com/drush-ops/drush/releases/download/8.0.1/drush.phar

Give it the right permissions:

chmod +x drush.phar

Next rename it to drush and move it to a folder in your path. You can check your path by doing:

echo $PATH

In my case, I did:

mv drush.phar /bin/yourwebfactionusername/bin/drush

Now run:

drush

And you should be good to go! Now you can, for instance, go to a Drupal installation of yours and run drush.

cd /home/yourwebfactionusername/webapps/some_drupal_install drush

permanent link
This answer is marked "community wiki".

answered 08 Jan '16, 14:37

donleche
112
accept rate: 0%

Thanks. Your solution worked for me after I first deleted all existing drush folders and executables.

(28 Apr '17, 13:02) dhigby

I followed the steps but I get this error Fatal error: Class 'Console_Table' not found in /home/USERNAME/drush/includes/drush.inc on line 955 Drush command could not be completed.

permanent link

answered 08 Feb '11, 05:06

ravisagar
11
accept rate: 0%

Hi,

Could you try the steps to solve it listed here: http://drupal.org/node/563170 ?

Hope that helps!

(08 Feb '11, 05:19) neeravk

I installed drush and composer following these steps:

Step 1. Followed the steps in this post, but instead of loading drush from that URL, I downloaded it from the new git repository: https://github.com/drush-ops/drush.

Step 2. Installed composer as per the steps in this other post, bit I didn't find the mentioned lines in the composer.json file. (~/composer/composer.json)

Step 3. Added a symbolic link from ~/bin/composer to ~/composer/bin/composer

After that drush stills does nothing and instead displays a message stating: "Unable to load autoload.php. Drush now requires Composer in order to install its depedencies and autoload classes. Please see README.md"

Can someone please help me with this issue?

permanent link

answered 23 Feb '14, 04:13

jacmkno
1112
accept rate: 0%

This worked for me:-

curl -sS https://getcomposer.org/installer | php

echo -e "\n# Composer\nalias composer=\"php \$HOME/bin/composer.phar\"" >> $HOME/.bash_profile

composer global require drush/drush

echo 'export PATH=$PATH:$HOME/.config/composer/vendor/bin'  >> ~/.bash_profile

exec bash -l
permanent link

answered 30 Jun '17, 22:35

featherbelly
112
accept rate: 0%

edited 02 Jul '17, 10:33

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×61
×6

question asked: 10 Nov '10, 11:16

question was seen: 8,470 times

last updated: 02 Jul '17, 10:33

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM