I've been scouting the forums for the past two days trying to get an answer to my problem, i'm new to Drush but pretty good with Drupal. my environment is as follows:
- centos 6
- php 5.3.3
- drupal 7.x single site basic installation
cd to my site root directory and i used drush dl seo_checklist which worked fine.
when I run
drush en seo_checklist I get the following output:
Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. [error] The drush command 'en seo_checklist' could not be executed. [error] Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This may occur when Drush is trying to: * bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details. * connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details. Drush was attempting to connect to: Drupal version : 7.34 Site URI : http://default PHP executable : /usr/bin/php PHP configuration : /etc/php.ini PHP OS : Linux Drush version : 7.0-dev Drush temp directory : /tmp Drush configuration : Drush alias files : Drupal root : /var/www/html/mytestsite Site path : sites/default
i did modify my settings file to include:
'host' => php_sapi_name() == 'cli' ? '127.0.0.1' : 'localhost'
UPDATE - 1
drush st returns the following:
PHP executable : /usr/bin/php PHP configuration : /etc/php.ini PHP OS : Linux Drush version : 7.0-dev Drush temp directory : /tmp Drush configuration : Drush alias files :
everything inside the root folder has 755 permissions and belongs to apache:apache
I am running the
drush command as root. i have no idea what could be causing the problem.