Installing Drush On Any Linux Based Server Out There

Ok, so I am just conveying my experience in installing the quintessential tool that is drush. I work at Kalamuna and I provide support to a majority of our clients. I am constantly having to move sites around from server to server, platform to platform, etc.

One of the biggest challenges I faced early on (and still do) is how do I get drush to install on a certain server? Some are very easy, some are great because they come with drush, but most are not.

Drush and Hooks

i have installed the ldap module, which makes it possible to sync a user with active directory, when a user is created or updated.
When creating a user through the user administration, the sync is performed perfectly. But i'm trying to create a script, which can fetch all users from ldap and create them afterwards. But when created, the "sync" with ldap is not done. Are hooks not triggered, when using: drush script ?

Taxonomy upgrade extras: 

drush permission denied command

I have install drush tool in my window8, it work well when the beginning
but after I run drush ld some_module not in the main directory of drupal project.
I just get a error:

C:\xampp\htdocs\drupal7\sites\all>drush ld view
require_once(C:\xampp\htdocs\drupal7\sites\all): failed to open [warning]

stream: Permission denied
Drush command terminated abnormally due to an unrecoverable error. [error]

Taxonomy upgrade extras: 

Why are some fields missing from an export from drush but not from the UI?


  • Have a views data export display
  • Output is fine when using Drupal UI
  • Output is missing Field UI fields when using Drush

Field Permissions Installed

  • Drush runs views data export as anonymous user causing view to not retrieve fields the user does not have access to because of field permissions.
  • Drush may be run as a different user with the user argument: drush --user=1 vde

How to build a sub-theme (Zen 7.x-5.x) - Automated using Drush

The base Zen theme is designed to be easily extended by its sub-themes. You shouldn't modify any of the CSS or PHP files in the zen/ folder; but instead you should create a sub-theme of zen which is located in a folder outside of the root zen/ folder. The examples below assume zen and your sub-theme will be installed in sites/all/themes/, but any valid theme directory is acceptable (read the sites/default/default.settings.php for more info.)

IMPORTANT NOTE: In Drupal 7, the theme system caches which template files and which theme functions should be called. This means that if you add a new theme, preprocess or process function to your template.php file or add a new template (.tpl.php) file to your sub-theme, you will need to rebuild the "theme registry." See

Drupal 7 also stores a cache of the data in .info files. If you modify any lines in your sub-theme's .info file, you MUST refresh Drupal 7's cache by simply visiting the Appearance page at admin/appearance.

This documentation is specifically for people who use Drush. You can take advantage of the drush zen command to automatically generate a sub-theme.

    Install Drush on CentOS (with H-Sphere)

    Below is how I install Drush on CentOS systems that have H-Sphere installed as a control panel

    1 - Grab a copy of Drush and untar it in your shared folder

    sudo wget --quiet -O - | sudo tar -zxf - -C /usr/local/share

    (Note, change the link above you the link to the latest version of drush on

    2 - Create a symbolic link to where Drush can be found on your server

    sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush


    Subscribe with RSS Subscribe to RSS - drush