Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules, themes or profiles.

learn more… | top users | synonyms

2
votes
1answer
14 views

The drush command 'sql dump' could not be found

Im a trying to do a backup of my drupal site with: drush -v sql dump --result-file=DrupalBackups/nameofsqldb5.sql but it results in following error message: The drush command 'sql dump' could not ...
1
vote
1answer
32 views

How to change the value of site_name to “My site name” in multilingual sites using Drush?

I'm trying to use this drush command: drush variable-set site_name "My site name" I have no problem at all to use this command when the site has only 1 language. But it doesn't seem to work (have ...
0
votes
1answer
26 views

Error: Call to undefined function drupal_sanitize_options() in /usr/share/drush/commands/sql/sqlsync.drush.inc, line 83 [on hold]

I get this error when trying to run any Drush command: PHP Fatal error: Call to undefined function drupal_sanitize_options() in /usr/share/drush/commands/sql/sqlsync.drush.inc on line 83 Drush ...
0
votes
1answer
11 views

How to list all users in drush?

I would like to list information about all users using drush. There is user-information, but it shows information only about single user. Are there any other solutions?
1
vote
1answer
19 views

Save my link configuration with drush or else?

I just modified my database so I can translate 2 link from a block that I made. The translation won't show up until I go here admin/structure/menu/item/1022/edit and press Save. I would like to know ...
0
votes
1answer
38 views

Two commands won't work with drush

I try to run typical commands like drush cc all or drush pm-uninstall while in the folder of my local site (in my pc, win 7 sp3), and yet I get error say: "'mode' is not recognized as..." ...
1
vote
1answer
29 views

Drush for drupal 8

i upgraded drush to 7.0-dev and within my drupal 8 folder drush status throws error Drush command terminated abnormally due to an unrecoverable error. Error: Call to undefined function ...
1
vote
1answer
15 views

Why drush needs a stage server

I have seen a lot drush setups in the past and every setup had a stage server configuration Is there a reason why thay have a development server a stage server and a productive server What are ...
-3
votes
0answers
26 views

Use Drush in remote server? [duplicate]

I was using Drush version 5.3 in my remote server with no problem at all. I got it working just uploading the the tar.gz from drupal.org to the root of my server. Then I could use commands like: ...
0
votes
1answer
14 views

Features, Drush and Drupal 6

I'm using drush on D6 websites and i would to create and manage my features via drush.So i patched the 1.2 version like in this post : Then i get an error when i try to create a feature for content ...
1
vote
1answer
23 views

Extendeing drush aliases with specific variables

I like to know if it is possible to extend drush aliases with more specific path variables. Is there anybody who can tell me how to extend the drush example code, that follows below with array for the ...
0
votes
1answer
38 views

Drush - No Drupal Site Found when clearing cache

I installed drush using composer following the instructions here: http://docs.drush.org/en/master/install/ When trying to run drush cc all I get this error: No Drupal site found, only 'drush' ...
0
votes
0answers
13 views

Error installing DRUSH in shared hosting environment on PHP 5.5

I have installed DRUSH 6 and copied the webserver's php.ini file to /home/username/.drush/drush.ini. I have then edited the line 'disable_functions' so it doesn't disable anything. When I run any ...
1
vote
3answers
45 views

Drush can't DL modules - xml error

I'm working in a Linux server with PHP 5.3.3 installed along with Drush 6.2 (?) I'm unable to dl modules to the server. When I add --verbose to the command, I see the following. Executing: wget ...
0
votes
0answers
23 views

Drush won't use password for DB connection; how to set it to use password and define password?

I can't figure out why and where Drush is set/configured not to use password when connecting DB. For instance I was trying setup a quick site e.g. command drush qd which gives: PDOException: ...
0
votes
1answer
54 views

Run a drush script from php system()

I have a Drupal module with a function that runs a system(“myscript.drush”); function _deploy_monitor_stream($submission_id) { header("Content-type: text/plain"); disable_ob(); // Outputs to ...
1
vote
1answer
15 views

Is it possible to set a single member of a complex-variable inside the variable table

I want to use Drush vset to modify a subset of values stored in the 'variable' table's theme_themeName_settings record. I've found references to vget and vset but all I've found so far is for the ...
0
votes
1answer
35 views

Acquia Desktop & MAMP: No Drupal site found, only 'drush' cache was cleared

Usually I use MAMP for my local development server which already has all of my shortcuts and stuff configured the way I like it. A client was on Acquia Cloud and to prevent conflicts with other ...
4
votes
1answer
22 views

Avoid sql-drop or sql-sync drush commands in a particular environment

I'm syncronizing databases form stage to local environments with drush commands like: drush @dev sql-drop drush @stage @dev sql-sync How can I protected that the @stage server reject to drop or ...
0
votes
1answer
60 views

Beginner Drush question. Can't get Drush to do anything!

I can't get Drush to do much. I can connect to my site by typing cd and then dragging my files to the terminal window in OSX using Acquia DevDesktop. My overall goal is to create a sub theme of ...
5
votes
3answers
94 views

How to install an existing Drupal profile with drush?

Seems like searching for the answer on Google just leads me to how to create make files and profiles. I know how to do that. I also know how to install Drupal with drush. But I want to install one ...
1
vote
1answer
23 views

How to set proper permissions for drush rsync

I have a weird problem here. When I use drush sync for my remote server, Drush changes permissions for the uploaded files to the name of the remote user for both the user and the group on the system. ...
1
vote
1answer
17 views

Execute drush command against against multiple groups

We have a large set of Drupal instances, and we use Drush alias groups to group them logically. For example, we have a group "dev" for all sites "in development", and, for example, another called ...
1
vote
1answer
6 views

is it possible to declare an user group for the remote user in aliases.drushrc.php

I have a different user group for apache on my remote server clould i specify a group for drush sync like remote-user user adds the user or in some similar way ?
1
vote
2answers
32 views

xmlrpc() error: (-1001) unable to parse URL during Drush command

I have an odd error coming from Drush when I perform module updates and other commands (it's most consistently comes from module updates). Near the end of the command execution this message pops up: ...
1
vote
1answer
39 views

Drush fails “unable to copy” to drush-backups? [closed]

When I run $ drush pm-update I receive an "Unable to copy" error. Unable to copy /mnt/hd0/vhosts/yourwebsite.com/drupal-7.36 to /home/ec2-user/drush-backups/opencall/20150422140414/drupal. ...
1
vote
2answers
53 views

Drush alias partially working

My Drush alias file is: $aliases['mysite'] = array ( 'uri' => 'mysite.com', 'root' => '/var/www/mysite', 'path-aliases' => array( '%dump-dir' => '/tmp', ), ); when I do ...
1
vote
2answers
26 views

using sass to generate RTL & LTR css files in Omega 4

is there any convenient way of using Omega 4 to compile rtl and ltr css files automatically. I mean something like this or this, but for drupal.
1
vote
0answers
20 views

Drush Make: error “unable to unzip”

I'm trying to setup a new project using the Drush make command. I'm working on localhost (xampp) on a Windows 8.1 machine. The problem is that if a module present in my make file requires an external ...
1
vote
1answer
14 views

How could i configure drush to be always affirmative and verbose in a drush.ini-file?

Could I configure drush for non-interacive usage from bash-scripts to be always affirmative as I would pass the --yes and -v-option in /etc/drush/drush.ini? I'm aware that I could set a bash-alias and ...
2
votes
1answer
179 views

Running Drush Within Drupal 8 Instance Returning Error

I am running drush version 6.2.0 and the latest Drupal 8 beta on Dreamhosters. When I run drush cc all within the sites directory, I receive the following error immediately after executing the ...
1
vote
1answer
26 views

“drush up” turns off all of my modules

I'm using drush to make version updates and any time a module (in todays case, recaptcha) needs to be updated, it successfully does the update. However it seems to reset the database turning off ...
1
vote
1answer
44 views

Drush is pointing to the wrong web site

Currently drush points it commands to /domains/steve_public/sites/default. I actually want drush to point its commands to /public_html/sites/default. Can anybody advise me to how achieve this? Do I ...
1
vote
0answers
22 views

Drush 7 downloads modules in zip format

I had Drush 6 working correctly. I had been using Drush 7 on Mac working correctly but now I installed Drush 7 on Windows. Now when I download modules using drush like drush dl Panels, it downloads ...
2
votes
1answer
46 views

Upgrade zen theme (7.x-3 to 7.x-5.5)? [closed]

Presuming I have zen-7.x-3.x + a sub-theme, how do I go about uprading to zen-7.x-5.x? Perhaps using drush? I am in awe of the people who wrote these pages: https://www.drupal.org/node/219527 ...
0
votes
1answer
63 views

Can't use drush site-install to drop tables and reinstall in MAMP

I have a local multisite instance running MAMP 3.0.7.3, and I can't use the drush site-install command to do a re-install of one of my sites without actually dropping the database first. If I try the ...
1
vote
1answer
31 views

Drush Make doesn't do anything (Windows)

I've been trying to use drush make on a very simple test project (an empty folder containing just the make file) to see how it works, but nothing happens. In the shell, there's a one second delay ...
0
votes
0answers
52 views

Drush error trying to create Omega subtheme on MAMP

Drush is running on MAMP, PHP 5.6.6. Inside Volumes/Doxy/htdocs/omegadoen/sites/all/themes/omega I run: drush omega-wizard I get: Additional uncaught exception thrown while handling ...
0
votes
1answer
43 views

Alternate ways to call a function inside a .module file of a module

I have installed quickdraw module and it needs some additional functions to be executed using drush commands. For that, I used the following drush commands: drush php-eval ...
0
votes
1answer
17 views

Can't find location of files after running drush make

I am creating a drush .make file for a site. I have generated the drush.make file using drush make-generate and then updated the file as necessary. I am now trying to use the .make file to create a ...
0
votes
0answers
48 views

Full site migration: drush archive-restore fails

I need to migrate a Drupal instance from a server to another identical server. So I used the Composer + drush shell commands for the backup (drush archive-dump), but the restore (drush ...
0
votes
0answers
10 views

Automate Drupal Reindex

I wrote a ruby script to create a "Help" doc installation on a test machine (CentOS, VM). On step of the process is to reindex the data for the "Help" doc installation (5GB of data). The total amount ...
0
votes
1answer
35 views

Why is `drush make` unable to apply this patch to the Entity Reference module?

We have a CI server that runs drush make to build a Drupal project. The project includes the Entity reference module and we now need to apply this patch (source). To do this we're defining the patch ...
0
votes
1answer
50 views

Working on Drupal 8 and drush with teammates

I'm currently working on a website using Drupal 8, with 3 other members in my team. We use git as a versioning system, and we very often work at the same time on different branches. Here is the ...
0
votes
2answers
56 views

Drush and MAMP3: cannot connect to database

I've just updated to MAMP 3.1, and am running Yosemite 10.10.3 (public beta). Since updating, I cannot perform any commands using Drush. I have: sim-linked from /var/mysql and also /var/lib/misql ...
1
vote
1answer
41 views

Not possible to drush sql-sync sqlite to mysql pragma

I have a local testing setup where I can create drupal sites easily, all running with a sqlite DB. I want to (firstly) publish the site to a remote server using a script that calls drush sql-sync ...
1
vote
1answer
37 views

Drush error cygintl-2.dll is missing

So I get the following error "the program can't start because cygintl-2.dll is missing from your computer. try re installing the program to fix this problem" I am getting this error when I try to run ...
5
votes
1answer
55 views

Create OS user specific Drush commands

I know how to create drush commands in a project, but there are a number of commands which I would like to add to my local system simply because they affect my particular workflow a lot. In Clisp, I ...
0
votes
0answers
54 views

Drush not working due to PHP fatal error, “Failed opening required 'dbconfig.php'”

I'm working on a remote D7 install via ssh. I've just installed Drush on the remote server using apt-get, and I can run the "drush" command from anywhere on the server. However, when I try to run the ...
3
votes
2answers
93 views

Drush and Multi Sites: Targeting specific sites

I have a Drupal Multisite set up. It contains two sites, but the core Drupal install has no site. With Drush, I can use @sites to target all sites. For example: drush @sites -y cc all - Updates all ...