Drush is a command line shell and scripting interface for Drupal.

learn more… | top users | synonyms

0
votes
2answers
80 views

How do you Drush reset an administrator password?

How do you Drush reset an administrator password after forgetting the pass and losing its email?
1
vote
2answers
165 views

Creating a new user role with Drush

I can do loads of user-related stuff with Drush, but I can't see how to create new user roles. Is it possible to do this with Drush?
0
votes
1answer
258 views

Upgrade drupal using drush: Failed to check available update

I am trying to upgrade Drupal from 7.14 to 7.18 using drush up command. Nothing gets updated and I see a bunch of failed warnings: Failed to check available update data for CCK. Failed to check ...
0
votes
1answer
154 views

Updating Drush when installed using pear

When I run drush self-update, I get the following message: A newer version of drush, 7.x-5.8, is available. You are currently running drush version 6.0-dev. The update process depends on how you ...
2
votes
1answer
230 views

Complicated Drush setup with MAMP

Since two weeks I have replaced my optical hard drive with an SSD for my OS and all my applications while I kept my hard drive for data. So I've installed MAMP on my SSD and my Drupal directory ...
2
votes
1answer
272 views

How do I use Drush correctly to restore a site via the arr command?

I am having an issue with the Drush arr command working correctly. I use drush to backup an archive on a testing server and then move it to a live server, or vice versa when needed. Here is a ...
5
votes
1answer
86 views

How can I get major version updates with drush pm-update?

I often check for updates to my modules using drush pm-update. However, this check does not check for succeeding major versions. For example, if I am using Mollom 1.1, drush pm-update will not alert ...
1
vote
1answer
77 views

Rules module not enabling via Drush in drupal 7

this may be a simple one however while downloading Rules through drush and getting the following error. root@li:/var/www/drupal7/sites/default# drush en rules* No release history was found for the ...
3
votes
2answers
60 views

tell drush to update anything not part of a profile

I'm using an installation profile (open-outreach) and additional modules / themes. I don't want drush to update modules that are part of the profile, but would like to update everything else. Is ...
0
votes
2answers
153 views

After PHP upgrade Drush Fails

After ugrading PHP 5.3 to 5.4.10, drush fails with the following error for most of commands: Command watchdog-show needs a higher bootstrap level to run - you will need to invoke drush from a more ...
2
votes
1answer
105 views

How to replace “default” with website name in drush

When I run drush user-login username, drush prints a url like http://default/user/reset/1/32323933.... How do I replace default with the actual website name?
1
vote
1answer
54 views

Locked out of my local site after transfer

I put an old site on my new machine and got it up and running, except for clean URLs. The login creds in my notes didn't work so (after a few attempts) I used mysql via drush to change the password, ...
2
votes
1answer
119 views

Create a field linked to a vocabulary with Drush

Let's say I have created a taxonomy vocabulary called ABC. For this vocabulary ABC, i want to create many fields using Drush. I've tried drush field-create ABC myfield,text,text_textfield It ...
0
votes
1answer
47 views

How to install drush extension / addon globally?

I want to install drush-toolbox project globaly on my linux server box so all users can use it. How can I do it?
0
votes
0answers
22 views

Drush site-alias via php doesn't return short alias

when I do "drush sa" in terminal I get : $ drush site-alias --short @site-drupal @i3f @kera @none But, when I do it in a php script passthru("/usr/local/bin/drush sa --short"); I get only @none ...
8
votes
1answer
121 views

How can I install composer packages with drush make?

How does one include composer package in a drush make file? The more general answer, the better. There's already a composer drush module allowing drush dl to handle composer packages, but that ...
0
votes
2answers
59 views

How to inspect a variable when testing with `drush test-run`.

When testing with my SimpleTests, I want to inspect a variable. var_dump() and the likes are not being rendered in the output of Drush, Xdebug interactive debugger does not work due to the simulated ...
0
votes
1answer
44 views

In an Aegir platform how do I change what modules drush enables when a site is created

So far I have successfully in setting up Aegir and seting up a number of Platforms using makefiles. Now I want to tinker with one of the platform by adding a number of modules and tweaking some ...
3
votes
2answers
105 views

drush command to show available commands per module

For example i would like to see all the commands provided by the features module, I know i can do drush help | grep features But i don't feel safe doing this with all modules there are (you never ...
2
votes
2answers
195 views

Drush and user permissions

I see that my user is a member of the apache group. I added and confirmed via the following $ sudo usermod -a -G apache `whoami` # add my user to apache group $ sudo chmod -R g+w . # ...
0
votes
0answers
23 views

Running recommender encounter an internal error

I'm using recommender module to generate prediction for product. But every time i run recommender, memory gets exhausted. Can anyone suggest me how to resolve this problem. Message - Running ...
1
vote
2answers
40 views

What is the correct ways to add themes to a profile within an Aegir install

I have Aegir installed with a two platforms. I'm interested in adding some additional themes/modules to the platform. Normally I might do this through Drush, but when I log into the server, I am ...
0
votes
3answers
258 views

Setting permissions via drush make; auto-copy settings.php?

I'm using drush make to build out an installation profile, and it's working great, however, settings.php doesn't get created and files has the wrong permissions. Is there any way to automate this ...
1
vote
1answer
114 views

drupal 6 to 7 site upgrade using drush_sup - how to download compatible drupal 7 modules

I used drush_sup to upgrade my drupal 6 to 7 site. everything went smooth except the drupal 7 modules were not downloaded to the upgraded website. During the upgrade process it did list the installed ...
2
votes
1answer
127 views

How to specify the version for drush site-install

I am running drush site-install and I want to install d6 but d7 is default, how to I specify the Drupal version?
2
votes
1answer
33 views

Getting an email notification when a new Drush version is available

With standard Drupal modules, you get an email notification when there's an updated version. How can we have this option with Drush? I searched the official http://drush.org website and ...
6
votes
1answer
288 views

Drush command to show aliases?

Is there a drush command to show existing aliases? I did some googling and I didn't turn up anything.
2
votes
1answer
80 views

Way to prevent drush from eating custom profiles when updating core?

I use drush make with a stub .make file to download a custom profile via git. that profile has all of the modules I want all of my sites to start out with. If I then go into that site, and run ...
0
votes
0answers
244 views

-bash: drush: command not found (Debian 6) [closed]

Why does drush say "command not found" when I try to execute remote commands? suggests adding a line to my .bashrc. Is my line below wrong? Do you have any other suggestion? $ ls ...
2
votes
1answer
149 views

drush determine whether module is enabled / disabled?

Trying to write a drush script to enable a bunch of modules based on a hook. If it's already enabled i would rather skip enabling that module. Is there a way for drush to return whether or not a ...
15
votes
2answers
462 views

Memory-saving cache-clearing strategies for large sites?

One of my Drupal 7 sites has thousands of fields, a bunch of content types, more than 25 views, and hundreds (soon to be thousands) of profile types. Because of this, I'm using a core patch that ...
1
vote
1answer
38 views

Drush 4.5 sql-sync hangs up

I run drush sql-sync @mysite.es.remote @mysite.es.local then I hit yes to continue and command completely hangs up for ever. Meanwhile I checked phpmyadmin and it seems that it's synced my local ...
1
vote
1answer
77 views

Drush alias doesn't work

none of my site aliases defined in /home/peter/.drush/aliases.drushrc.php seems to work. When I ran: drush sa @mysite.dk.local i got $aliases['mysite.dk.local'] = array ( 'uri' => 'mysite.dk', ...
1
vote
0answers
140 views

Drush, post receive hooks and git branches/tags

I am stuck with a nagging issue in our deployment systems drush version 5.7 git version 1.7.7 Drupal 7.x We currently have a bare git repository (consisting of drush makefiles) on the production ...
3
votes
4answers
320 views

Can drush show list all available modules?

With yum you can do yum list available ..., and know the name of the package you want to install. For example, there is the Mime Mail module in Drupal. What name should I use with drush dl, ...
0
votes
3answers
245 views

Use drush to download drupal core files directly into directory rather than subdirectory

When you use drush dl normally, it will download drupal into a subdirectory ie: drupal-7.16 I would like to skip creating the subdirectory and just install the drupal root directory files into the ...
1
vote
1answer
184 views

Manually adding sdk for AWS SDK PHP Module

The AWS SDK for PHP Module comes with a drush make script: ; Drush Make (http://drupal.org/project/drush) api = 2 core = 7.x projects[awssdk][type] = library projects[awssdk][download][type] = git ...
1
vote
1answer
57 views

Not sure how to work with beanstalkd module

I am looking to setup a queue system to upload large files (~150MB). For specific reasons we decided to do this using SFTP (phpseclib). After some research I came to the conclusion that I would ...
2
votes
1answer
494 views

How to completely wipe and rebuild drupal menus?

A while ago I found a cool blog post that detailed how to empty the menu tables, and rebuild the menu system with a drush php call, a necessity since the site will be unusable after emptying those ...
4
votes
1answer
87 views

Custom redirects and Drush/updates

I usually update Core with Drush, because it's so easy and wonderful, but I have a custom htaccess and it always overwrites it, forcing me to rely on a checklist where I have to go and put my custom ...
0
votes
1answer
111 views

Converting a Project from D6 to D7 using Drush in localhost?

I have a D6 project in my localhost i.e C:\wamp\www\ProjectName_6 I need to migrate the above mentioned project to D7 in the same directory using drush. Should be like this ...
1
vote
1answer
257 views

Why would drush sql-sync fail to work?

I have a development server set up in my drush aliases as @dev, and a UAT server set up as @uat. I can successfully execute drush commands locally on both servers, and I can execute remote commands ...
0
votes
1answer
121 views

How do I update a Drupal distribution to a newer version?

I am looking at using http://drupal.org/project/commons , but I am not sure how easy it is to update a distribution when a new version comes out. Also, can I use drush to do it, or do I have to ...
3
votes
1answer
185 views

Use drush make to load only modules?

I have a dev site with many modules. I have another dev site on a different server that I'd like to populate with the same modules. I can zip 'em up and move the file, or use rsync, but I wanted to ...
2
votes
1answer
87 views

When is using --package-handler=git_drupalorg appropriate with drush?

In which situations are using drush pm-downlaod --package-handler=git_drupalorg ... appropriate? For example, if I am developing a normal site and want to version it with git, I assume it just ...
0
votes
2answers
162 views

user_login_finalize() logins the user, but I remain anonymous

I'm using user_login_finalize() in my code to login a user (right before the review page), and this works because I can see the log in drush watchdog-list. However, it only works behind the scenes: ...
3
votes
1answer
804 views

Why does drush say “command not found” when I try to execute remote commands? [closed]

When I use a drush command to do something on a remote machine, I get the message bash: drush: command not found What's the problem?
0
votes
0answers
83 views

Whenever I try to enable or disable modules using drush, there is a WD form error displayed

drush en <modulename> ... WD form: Illegal choice split_test in status element. <modulename> was enabled successfully. An illegal choice has been detected. Please contact the site ...
4
votes
2answers
842 views

Does the drush up command work on multisite?

I have to update all sites on a D7 multi-site installation. I normally deal with single installation and I use drush up to update the core, modules and db. I have no prior experience with a multi-site ...
4
votes
2answers
427 views

What could cause remote drush commands to fail with ssh errors when ssh works in all other cases?

I have public and private ssh keys on all of my three servers (dev, UAT, & production) so I can log in remotely, or from one to another. Everything is working perfectly for the ssh and scp ...

1 2 3 4 5 8