Translation(s): English - Français - Italiano


Command line shell and Unix scripting interface for drupal.

Installation

  1. If Drupal is installed and configured, you can install the drush package:

    apt-get install drush
  2. By default, drush doesn't know where drupal is installed. To specify the path of drupal, create the file /etc/drush/drushrc.php:

       1   <?php
       2     // default drupal 7 directory
       3     $options['root'] = '/usr/share/drupal7/';
       4   ?>
    
  3. You can verify that the configuration is correct with this command:

    # drush status
    Drupal version         :  7.14                   
    Site URI               :  http://default         
    Database driver        :  mysql                  
    Database hostname      :  localhost              
    Database username      :  drupal7                
    Database name          :  drupal7                
    Database               :  Connected              
    Drupal bootstrap       :  Successful             
    Drupal user            :  Anonymous              
    Default theme          :  bartik                 
    Administration theme   :  bartik                 
    PHP configuration      :  /etc/php5/cli/php.ini  
    Drush version          :  5.4                    
    Drush configuration    :  /etc/drush/drushrc.php 
    Drupal root            :  /usr/share/drupal7/    
    Site path              :  sites/default          
    File directory path    :  sites/default/files    
    temp                   :  /tmp