Finally got drush to work!
Drush is a command line tool built for drupal users. It allows me to administer my site through easy command lines. Need to update the database and modules? Do so from the command line. I had issues with drush not wanting to run because it said my php-cli was not the right version. So, after looking into it, I noticed that my web host, has every version of php cli installed under the sun. So the binary was most likely just confused. To fix this I simply aliased the drush binary to the proper version.
So for example, my binary for php lived in /usr/local/php-cli.5.2.0 (can't recall off the top of my head and too lazy to ssh in and verify). To find out which php you are using simply in a terminal session type which php, and it will reveal the path, you can also use whereis php, and it should also display the path. Tye the commands as they are typed in red font to get the results.
The drush instructions tell you to drop your drush binary in the webroot folder. So I did just that. Then I aliased my path to php to drush.php and all was well. To do so, type the following in a termal or ssh session logged into your web server.
alias drush='/usr/local/php-cli.5.2.0 /path/to/webroot/drush/drush.php'
Once you run that drush should totally work. For more info on drush see the module page: http://drupal.org/project/drush
-Tom
- tlarkin's blog
- Login to post comments
