Answer the question
In order to leave comments, you need to log in
Why doesn't Drush work?
Installed drash, it seems a wonderful thing. I tried to install the module, everything is fine, but he does not want to enable the module
[email protected]:/var/www/mytrip$ drush en views
Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal[error]
environment to run this command.
The drush command 'en views' 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 drupal.org/node/1428638 for details.
Drush was attempting to connect to:
Drupal version : 7.32
Site URI : default
Database driver : mysql
Database username : root
Database name : mytrip
Default theme : garland
Administration theme : garland
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush version : 6.2.0
Drush configuration :
Drush alias files :
Drupal root : /var/www/mytrip
Site path : sites/default
File directory path : sites /default/files
Answer the question
In order to leave comments, you need to log in
If you have a MAMP server then:
You need to check where is which php,
localhost if port 3306
.zshrc .bash_profile
export PATH=/Applications/MAMP/Library/bin:$PATH
export PATH=/Applications/MAMP/bin/php/php5. 6.10/bin:$PATH
export PATH="$HOME/.composer/vendor/bin:$PATH"
If something else
Try setting localhost or 127.0.0.1 in settings.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question