Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2014-11-07 13:30:30
Size: 1908
Comment: Replace les balises php effacées par une précedente modification.
Revision 4 as of 2015-02-08 10:54:49
Size: 1875
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
    // default drupal 7 directory in debian wheezy, use -r to override
    $options['r'] = '/usr/share/drupal7/';
    // default drupal 7 directory
    $options['root'] = '/usr/share/drupal7/';

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


Interface en ligne de commande et scripts Unix pour drupal.

Installation

  1. Si Drupal est installé et configuré, vous pouvez installer le paquet drush :

    apt-get install drush
  2. Par défaut, drush ne sait pas où drupal est installé. Pour indiquer le chemin du répertoire de drupal, créez le fichier /etc/drush/drushrc.php:

       1   <?php
       2     // default drupal 7 directory 
       3     $options['root'] = '/usr/share/drupal7/';
       4   ?>
    
  3. On peut vérifier que la configuration est correcte avec cette commande :

    # 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

Liens externes