Based on Drush on windows - Command pm-enable needs a higher bootstrap level to run, i have the following question.
I have the same problem found here https://drupal.org/comment/8533097 except I am using Postgresql and this solution did not work for me.
My Drupal installation is at: C:\SiteData\WebDev\gitproject (aka DrupalRoot). I successfully ran drush status
in "[DrupalRoot]\sites\site1.example.com, but when I try to enable a module using drush en ccl
and I get the following.
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. The drush command 'en ccl' could not be executed.
Drush was not able to start (bootstrap) the Drupal database.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.26
Site URI : http://site1.example.com
Database driver : pgsql
Database username : user
Database name : site1dev
Default theme : garland
Administration theme : garland
PHP executable : php
PHP configuration : "C:\Program Files (x86)\Drush\Php\php.ini"
PHP OS : WINNT
Drush version : 6.0
Drush configuration :
Drush alias files :
Drupal root : c:/SiteData/WebDev/gitproject
Site path : sites/site1.example.com
File directory path : sites/site1.example.com/files
My settings.php file looks like this.
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'site1dev',
'username' => 'user',
'password' => 'secretpw',
'host' => '127.0.0.1',
'port' => '',
'driver' => 'pgsql',
'prefix' => 'dev_',
),
),
);
if (php_sapi_name() == 'cli') {
$db_url = 'pgsql://user:[email protected]/site1dev';
}
else {
$db_url = 'pgsql://user:secretpw@localhost/site1dev';
}
I have used both the "Drush Command Prompt" and "MINGW32" git command line tool and both work for "drush status" or "drush dl " but not for "drush en "
One last comment. looking at the settings.php file permissions in MINGW32 they show the unix permissions of -rw-r--r--.. Tried changing this in using chmod but doesn't work on a windows file (not even sure that makes a difference).
drush cc drush
and you can invoke the particular site asdrush @example.com cc all # just example for clear cache all
drush @sitename
command from anywhere in the terminal, that was the reason the aliases were made.drush @site dis ccl
drush @site pmu ccl
and then enable it again?