1769
Comment:
|
← Revision 8 as of 2015-02-08 10:54:27 ⇥
1842
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~ | ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[fr/drush|Français]] - [[it/drush|Italiano]]-~ |
Line 7: | Line 7: |
1. If Drupal is installed and configured, you can install the drush package : {{{ apt-get install drush |
1. If Drupal is installed and configured, you can install the DebianPkg:drush package: {{{ apt-get install drush |
Line 12: | Line 11: |
2. By default, drush don't know where drupal is installed. To specify the path of drupal, create file /etc/drush/drushrc.php : {{{ |
1. By default, drush doesn't know where drupal is installed. To specify the path of drupal, create the file {{{/etc/drush/drushrc.php}}}: {{{#!highlight php |
Line 15: | 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/'; |
Line 20: | Line 18: |
3. You can verify that the configuration is correct with this command line : {{{ # 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 |
1. 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 |
Line 44: | Line 41: |
##== See also == | == External Links == * http://www.drush.org/ - Drush documentation |
Translation(s): English - Français - Italiano
Command line shell and Unix scripting interface for drupal.
Installation
If Drupal is installed and configured, you can install the drush package:
apt-get install drush
By default, drush doesn't know where drupal is installed. To specify the path of drupal, create the file /etc/drush/drushrc.php:
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
External Links
http://www.drush.org/ - Drush documentation