Hi there!
I have installed a new drupal recently, and drush refuses to work. Can anyone help troubleshooting this? This is the complete error message:
E: Drush was not able to start (bootstrap) Drupal.
Hint: This error often occurs when Drush is trying to bootstrap a site
that has not been installed or does not have a configured $db_url.
Drush was looking in the site ''. You can select another site
with a working database setup by specifying the URI to use with the --uri
parameter on the command line or $options['uri'] in your drushrc.php file.
My site is properly installed, and configured, drush module is installed. The settings file is in sites/default/settings.php. I am launching this from the drupal base directory.
What's the URI the error message is talking about? Does it mean the URL of the website, the URI of the database connection, or what?
Comments
Comment #1
vingborg commentedThe --uri settings refers to the site uri.
You can specify it on the command line like this:
drush ... --uri=http://localhost, where "..." is your drush command (incl. options).Or you can take another look at the README.txt and/or the example drushrc.php.
Comment #2
grendzy commentedThis is a duplicate of #345887: Drush: Bootstrap failed.
The fix can be found here:
#346285: Drupal 5.14 & Drupal 6.8 will not load on clients that do not transmit HTTP_HOST
Comment #3
kenorb commentedSee documentation:
http://drupal.org/node/477684
Comment #4
scresante commentedFor me, the problem was that php was incorrectly installed to both /usr/local/bin and /usr/bin
Solution: make sure that `which php` is the version you actually want to use.
Comment #5
mattcasey commentedon Windows 7 at least, it is "where php"