@bighoc
php/javascript developer

Почему не работает Drush ?

Установил драш, кажется вещь замечательная. Попробовал установить модуль, всё отлично, но он не хочет включать модуль

igor@igor-A770L3:/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
  • Вопрос задан
  • 2779 просмотров
Пригласить эксперта
Ответы на вопрос 2
drupby
@drupby
/var/www/mytrip - это корневой каталог друпала?
Ответ написан
@Luciano
Если у тебя сервер MAMP то:

Нужно проверить где находится which php,

localhost если 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"

Если что-то другой
Попробуй в settings.php указать localhost или 127.0.0.1
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы