Page 1 of 1

Drupal Drush Problem Under VestaCP

Posted: Sun Mar 06, 2016 3:31 am
by executionist
Hi, anyone have successfully install Drush (Drupal Shell) here ? Cause I cannot get it work under Vesta CP.
I think its maybe path or mysql config issue, but cannot found anything to make it run.

I already run Drush in website root folder - /home/user/web/domain/public_html

# drush cc all
No Drupal site found, only 'drush' cache was cleared. [warning]

# drush up drupal
Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a[error]
more functional Drupal environment to run this command.
The drush command 'up drupal' could not be executed. [error]
Drush was not able to start (bootstrap) the Drupal database. [error]

Any advise would be appreciated. Thanks.

Re: Drupal Drush Problem Under VestaCP

Posted: Mon Mar 07, 2016 7:04 am
by vlahonick
Hi,

I am a fellow Drupal user but I never had any problems with drush. I used (and using) drush successfully in CentOS 6 + Vesta, CentOS 7 + Vesta, Ubuntu 14.04 + Vesta, Debian 7 + Vesta, Debian 8 + Vesta. All the above with Drupal 7 though.

Can you provide more info about your installation, drush and drupal versions?
Can you provide the output of drush sql-connect and can you check if you have installed for sure the mysql-client-core-x.x package?

A quick fix from the past (may or may not help you atm) that manage to solve various weird errors for me:

Code: Select all

pear install Console_Table
mkdir -p ~/.drush
cp -i /usr/local/vesta/php/lib/php.ini ~/.drush/
Now verify if “~/.drush/php.ini” has “disable_functions = ” (it should by default)

Code: Select all

nano ~/.drush/php.ini
For more check the following link as well:
http://drupal.stackexchange.com/questio ... -bootstrap

Re: Drupal Drush Problem Under VestaCP

Posted: Fri Oct 28, 2016 6:51 pm
by lwhitelock
Just incase anyone else has this problem, the fix for me was that drush was overriding the site password by looking at ~/.my.cnf renaming / deleting that file solved the problem for me.

Re: Drupal Drush Problem Under VestaCP

Posted: Sun Dec 15, 2019 5:14 pm
by djey
Hi, I have exactly the same problem. But I don't understand how you found the solution. I renamed the file etc / mysql .my.cnf and I still get the error.
# drush cc all
No Drupal site found, only 'drush' cache was cleared. [warning]
# drush up drupal
Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a[error]
more functional Drupal environment to run this command.
The drush command 'up drupal' could not be executed. [error]
Drush was not able to start (bootstrap) the Drupal database. [error]
Drupal version : 7.67
Drush version : 8.3.3-dev

what to do ? Thanks for your help