0

I have a Drupal install on a CentOS development server. Running drush from outside my web directory returns as you'd expect (a list of Drush commands).

Running drush from inside my web directory returns nothing at all. Running with debug returns this:

Using the Drush script found at /home/***/vendor/drush/drush/drush using pcntl_exec
[preflight] Config paths: /home/***/vendor/drush/drush/drush.yml
[preflight] Alias paths: /home/***/drush/sites,/home/coventry/drush/sites
[preflight] Commandfile search paths: /home/***/vendor/drush/drush/src

When using Drush from outside my web directory with --root, I get this:

drush uli --root=~/***.com
We could not find an applicable site for that command.

My settings.php file exists in that above directory/sites/default, and the database connection info works. The site is accessible in the browser.

Any ideas on this botched Drush install?

  • Maybe --root doesn't like ~. Maybe try an absolute path. – leymannx Aug 6 at 4:57
  • make sure Drush knows where mysql is. I ran into this the other day after updating XAMPP, and I need to add mysql back to my PATH (WIndows 10 machine). Drush can complete some commands without mysql, so it's not always immediately obvious this is missing. – ben.hamelin Aug 6 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.