Questions tagged [drush]

drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

See http://drush.ws, the homepage for the drush project. It contains many important resources for drush users.

[A list of modules that include Drush integration.][3]

(drush is not a module)

[3]: http://A list of modules that include Drush integration.

346 questions
2
votes
0 answers

How to run Drush 10 custom command in Drupal 8 form submit?

I have created a custom command for drush 10 in my drupal 8 setup. The command works fine from the terminal. However I want to run that command when the user clicks on form submit. I have tried using the below and I am getting the following…
2
votes
0 answers

Can't connect to MYSQL container from Drupal container through drush

I try to figure out this problem since a long time now and I've got to admit that I'm out of responses. Here is the case: docker-compose.yml version: "3" services: mysql: image: mysql:8.0 container_name: mysql hostname: mysql …
2
votes
1 answer

cURL error 60: SSL: no alternative certificate subject name matches target host name. Inter-project communication

So I'm still in the process of updating a Drupal 7 site to 8 using drush and ddev. After running the import, I get an error with upgrade_d7_file. I've tried to install a certificate using this…
Mark
  • 75
  • 1
  • 7
2
votes
2 answers

Using xdebug with drush command

I have two Drupal codebases. On the first, I can hit a specific breakpoint through both the browser and through a drush command. On the second, I can hit the breakpoint only through the browser. The drush command finishes successfully without…
csmdgl
  • 21
  • 2
2
votes
0 answers

Git Pull stops Drush from working on my live server

After running: git pull origin master on my live server (via SSH in Terminal) it causes some issues with my Drupal site. But it also stops drush working on my live server. For example, prior to latest git pull, I could run commands like…
Auxiliary Joel
  • 173
  • 1
  • 13
2
votes
1 answer

Drush Allowed memory size of 2097152 bytes exhausted

When attempting to run Drush on an Ubuntu 18.04 web server I'm seeing the following error : PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 12288 bytes) in…
SheppardDigital
  • 3,165
  • 8
  • 44
  • 74
2
votes
1 answer

drush up drupal fails on _drush_recursive_copy

I am not able to upgrade to drupal 8.6.2 using drush 8.1.17. Unfortunately, drush does not provide the reason behind its failure. I have no clue of what do do next, and even how to debug it further. Any help is appreciated, thanks in advance. It…
leonixyz
  • 1,130
  • 15
  • 28
2
votes
1 answer

Drush and Drupal commands on Heroku instances

I'm working on a Drupal 8 site which is deployed on Heroku, how would I run Drush or Drupal commands on here? When I try it with the built in command line on the Heroku site it complains about MySQL not being present. Is it possible to run Drush or…
Neil Nand
  • 549
  • 6
  • 25
2
votes
2 answers

Drush cannot locate mysql on localhost MAMP

Using drush commands to update Drupal 8 Core on a localhost build in MAMP, I've found that drush won't acknowledge my mysql. From reading a few threads apparently this is due to MAMP's default locations for MYSQL location not being compatible with…
Auxiliary Joel
  • 173
  • 1
  • 13
2
votes
1 answer

How do I get Drush rsync to use site-aliases correctly?

I'm using Drush 4.2 and I'm trying to rsync files from a the dev server to my local machine. My aliases.drushrc.php is located in the root of my local drupal installation and has the following in it: $aliases['local'] = array( 'root' =>…
Christian Schlensker
  • 21,708
  • 19
  • 73
  • 121
2
votes
1 answer

SQLSTATE[HY000] [2002] Drush commands not working - DDEV vanilla Drupal 8 install

Just created a new Drupal 8 install using ddev, however, I'm having issues with drush. Whenever I run the command drush cr it returns the error: [error] SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname…
mlemon
  • 23
  • 4
2
votes
1 answer

PHP Composer Won't install Drush with php 5.6: phpunit/phpunit 4.8.x requires ext-dom

so I'm working on CentOs 7 and I have been attempting to create a working Drupal Composer template (https://github.com/drupal-composer/drupal-project) that includes a site-local Drush install (http://docs.drush.org/en/master/install/). For our…
Alex Conner
  • 240
  • 5
  • 19
2
votes
2 answers

How Can I use drush.ini file instead of global php.ini file - Drush

I install And run drush as explained in this article: My server is cloudlinux and cagefs.drupal7 Drush Use global php.ini File instead of drish.ini file and this issue makes some errors for open_basedir and disable_finctions functions. when I run…
omiti
  • 55
  • 1
  • 10
2
votes
0 answers

PHP Warning: Phar::mapPhar(): open_basedir restriction in effect - Drush

I install Drush on my cloudlinux and cagefs shared Hosting server.I am admin of server. I use this article for install drush on my server: How to install Drush in cPanel with CloudLinux and CageFS Commands that I running: cd wget…
omiti
  • 55
  • 1
  • 10
2
votes
1 answer

Drush is failing to install: Your requirements could not be resolved to an installable set of packages

I've got Composer installed globally according to the instructions given on https://getcomposer.org/doc/00-intro.md#globally and then tried to install drush. Unfortunately, drush is failing to install giving the following error: composer…
Nick
  • 207
  • 3
  • 11