I recently experiencing the problem on my local after i installed the zend server a few days before. But due to this problem i uninstalled the zend server and my drupal site is working fine but drush is showing this error:
Macbook-Air:drupal7 apple$ drush cc Command cache-clear needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this command. [error] The drush command 'cc' could not be executed. [error] Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This error often occurs when Drush is trying to bootstrap a site that has not been installed or does not have a configured database. Drush was attempting to connect to : Drupal version : 7.12 Site URI : http://default Database driver : mysql Database hostname : 127.0.0.1 Database username : root Database name : new_drupal Default theme : garland Administration theme: garland PHP configuration : Drush version : 4.5 Drush configuration: Drush alias files : Drupal root : /Users/apple/Sites/drupal7 Site path : sites/default Modules path : sites/all/modules Themes path : sites/all/themes File directory path: sites/default/files %paths : Array
I enquired about the php config file :
Macbook-Air:drupal7 apple$ which php
Macbook-Air:drupal7 apple$ whereis php
Macbook-Air:drupal7 apple$ type -a php
php is /opt/local/bin/php
php is /usr/bin/php
As referenced in this issue: http://drupal.org/node/1393232
I think drush is not able to load php configuration file. How to force drush to use the same config file as my drupal installation.
Any Help would be great ???