SlideShare ist ein Scribd-Unternehmen logo
1 von 6
Downloaden Sie, um offline zu lesen
Drush Installation Guide
Overview
Drush is a command line shell and scripting interface for Drupal. The purpose of this
installer is to copy all required Drush files and third party components that Drush is
referencing. The installer works on Windows OS. Optionally the installer configures
Windows Remote Management and environment settings.

Licensing
Drush Installer installs and/or uses the following components. Please refer each
corresponding URL for more information about its licensing.

Drush - http://drupal.org/project/drush

GnuWin32 - http://gnuwin32.sourceforge.net (including BZip2, Gzip, Less,
Libarchive, Libiconv, Libintl, OpenSSL, Pcre, Tar, Wget, Zlib)

PHP - http://windows.php.net

cwRsync - http://www.itefix.no/i2/node/10650

WiX Tool - http://wix.sourceforge.net/

Setting the PATH Environment Variable
Drush makes calls to executables without specifying full path to their location. In
order to resolve the correct location, their full path should be included in %PATH%
environment variable. This can be done by either installing the Register
Environment Variables feature, or by running the Drush Command Prompt located
on user’s desktop when installer completes.

Run As Administrator
IMPORTANT: Selecting Configure Windows Remote Management feature on systems
that has User Access Control enabled requires running installer with elevated
privileges. This can be done by right clicking on the MSI file and select Run As
Administrator. This is required step for system having User Access Control enabled.
Failure to do so will make WinRM configuration commands to fail due to MSI
impersonation restrictions.

System Requirements
Support Operating Systems: Windows 7, Windows Vista SP2, Windows XP SP3+,
Windows Server 2003 SP2+, Windows Server 2008, Windows Server 2008 R2.

Hard disk: 100MB free space

You must have administrator privileges on your computer to run the Drush Installer.
Installation steps
  1. Run DrushSetup.msi

  2. Click Next on the Welcome page




  3. Select features to install. See section Drush Installer Features below.
     IMPORTANT: If you select Configure Windows Remote Management feature,
     make sure that you run the installer using Run As Administrator option.
4. Click Install to proceed with installation
5. Click Yes if prompted to run as Administrator

6. Click Finish to complete the installation
Drush Installer Features
Drush Required Runtime
This feature installs all Drush source files and places them in %ProgramData
%PropeopleDrush folder. It is a required feature and is always installed.

GnuWin32 Required Components
This feature installs the GnuWin32 components below and places them in
%ProgramFiles%PropeopleDrushGnuWin32. GnuWin32 tools are required for Drush
to work on Windows. Drush makes calls to GnuWin32 tools without specifying full
path to their location. In order to resolve the correct location, their full path should
be included in %PATH% environment variable. This can be done by either installing
the Register Environment Variables feature, or by running the Drush Command
Prompt located on user’s desktop when installer completes.

Php Required Runtime
This feature installs PHPruntime in folder %ProgramFiles%PropeopleDrushPhp.
Drush makes calls to PHP runtime without specifying full path to its location. In order
to resolve the correct location, its full path should be included in %PATH%
environment variable. This can be done by either installing the Register Environment
Variables feature, or by running the Drush Command Prompt located on user’s
desktop when installer completes.
There are pretty good chances that PHP runtime is already installed on user’s
machine if you have used Web Platform Installer to install Drupal. However there is
no a safe way to detect if PHP runtime is already installed. If PHP runtime is already
installed on user machine and its full path can be resolved, you do not need to
install this feature. Also make sure that a recent version of the PHP runtime is being
used. A minimum version of 5.2 is required. Run php.exe -v see PHP runtime version.

cwRsync Optional Components
This feature installs cwRsync in folder %ProgramFiles%PropeopleDrushcwRsync. It
adds support for rsync command that is used for remote command invocation when
Windows calls Linux/Unix server.

Register Environment Variables
This feature adds full path of all installed features to PATH environment variable. Pay
attention that Windows has a limit of environment variables total length of 2047
characters as described in KB830473. If you exceed this length, some or all paths to
Drush components will not be added and will make Drush not operational. In such
case you can use Drush Command Prompt that gets installed on your desktop to
start new command prompt. Drush Command Prompt simply runs new command
prompt and executes DrushEnv.bat to set all required paths. If PATH still gets
truncated, run new Command Prompt window and remove all unnecessary PATH
values. Then run DrushEnv.bat to set all Drush required paths.

Configure Windows Remote Management
This feature enables remote command invocation from Windows client (where Drush
is being installed) to a Windows Server (where Drupal is hosted). Manual
configuration of WinRM can be performed by running WinRMConfig.bat file located in
%ProgramFiles%PropeopleDrush. In this case this feature need not to be installed.
This feature has also a sub-feature called Accept incoming requests. It should be
enabled when installing Drush on Windows Server hosting the Drupal installation. It
enables incoming connections and allows remote Drush commands to be sent to the
server. By default WinRM remote connections are enabled over HTTP port 80 using
WinRM Compatibility Http Listener. Port can be changed by either setting
WINRMPORT property of the MSI installer or by calling WinRMConfig.bat [port
number]. Read Installation and Configuration for Windows Remote Management for
more information on how to configure WinRM.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (12)

Linux Run Level
Linux Run LevelLinux Run Level
Linux Run Level
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevels
 
How To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on UbuntuHow To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on Ubuntu
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open source
 
Linux Basic Administration Commands Guide
Linux Basic Administration Commands GuideLinux Basic Administration Commands Guide
Linux Basic Administration Commands Guide
 
Reshape2 Installation Instructions
Reshape2 Installation InstructionsReshape2 Installation Instructions
Reshape2 Installation Instructions
 
How To Configure VNC Server on CentOS 7
How To Configure VNC Server on CentOS 7How To Configure VNC Server on CentOS 7
How To Configure VNC Server on CentOS 7
 
SystemV vs systemd
SystemV vs systemdSystemV vs systemd
SystemV vs systemd
 
Using cgroups in docker container
Using cgroups in docker containerUsing cgroups in docker container
Using cgroups in docker container
 
Deleting a vserver in Netapp cluster mode
Deleting a vserver in Netapp cluster mode  Deleting a vserver in Netapp cluster mode
Deleting a vserver in Netapp cluster mode
 
Docker in Production: Reality, Not Hype
Docker in Production: Reality, Not HypeDocker in Production: Reality, Not Hype
Docker in Production: Reality, Not Hype
 
Linux: Hardware Settings
Linux: Hardware SettingsLinux: Hardware Settings
Linux: Hardware Settings
 

Andere mochten auch

Drush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек МихаилDrush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек Михаил
PVasili
 
Depolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and CapistranoDepolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and Capistrano
libsys
 
5 Important Tools for Drupal Development
5 Important Tools for Drupal Development5 Important Tools for Drupal Development
5 Important Tools for Drupal Development
jcarrig
 

Andere mochten auch (17)

[Srijan Wednesday Webinar] Mastering Drupal 8 Development with Drupal Console
[Srijan Wednesday Webinar] Mastering Drupal 8 Development with Drupal Console[Srijan Wednesday Webinar] Mastering Drupal 8 Development with Drupal Console
[Srijan Wednesday Webinar] Mastering Drupal 8 Development with Drupal Console
 
Drush Presentation
Drush PresentationDrush Presentation
Drush Presentation
 
Composer tools and frameworks for drupal.ppt
Composer tools and frameworks for drupal.pptComposer tools and frameworks for drupal.ppt
Composer tools and frameworks for drupal.ppt
 
Drush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек МихаилDrush and drupal. администрирование. Волчек Михаил
Drush and drupal. администрирование. Волчек Михаил
 
Drush workshop
Drush workshopDrush workshop
Drush workshop
 
Drush for humans - SANDcamp 2013
Drush for humans - SANDcamp 2013Drush for humans - SANDcamp 2013
Drush for humans - SANDcamp 2013
 
Drupal, Memcache and Solr on Windows
Drupal, Memcache and Solr on WindowsDrupal, Memcache and Solr on Windows
Drupal, Memcache and Solr on Windows
 
Getting started with Drupal 8
Getting started with Drupal 8Getting started with Drupal 8
Getting started with Drupal 8
 
Managing Drupal on Windows with Drush
Managing Drupal on Windows with DrushManaging Drupal on Windows with Drush
Managing Drupal on Windows with Drush
 
Drupal 6 to Drupal 8 Migration
Drupal 6 to Drupal 8 MigrationDrupal 6 to Drupal 8 Migration
Drupal 6 to Drupal 8 Migration
 
Composer Tools & Frameworks for Drupal
Composer Tools & Frameworks for DrupalComposer Tools & Frameworks for Drupal
Composer Tools & Frameworks for Drupal
 
Xdebug and Drupal8 tests (PhpUnit and Simpletest)
Xdebug and Drupal8 tests (PhpUnit and Simpletest)Xdebug and Drupal8 tests (PhpUnit and Simpletest)
Xdebug and Drupal8 tests (PhpUnit and Simpletest)
 
Depolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and CapistranoDepolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and Capistrano
 
Drush - use full power - DrupalCamp Donetsk 2014
Drush - use full power - DrupalCamp Donetsk 2014Drush - use full power - DrupalCamp Donetsk 2014
Drush - use full power - DrupalCamp Donetsk 2014
 
Automation testing with Drupal 8
Automation testing with Drupal 8Automation testing with Drupal 8
Automation testing with Drupal 8
 
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
[drupalday2017] - DevOps: strumenti di automazione per Drupal8[drupalday2017] - DevOps: strumenti di automazione per Drupal8
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
 
5 Important Tools for Drupal Development
5 Important Tools for Drupal Development5 Important Tools for Drupal Development
5 Important Tools for Drupal Development
 

Ähnlich wie Drush installation guide

Single node setup
Single node setupSingle node setup
Single node setup
KBCHOW123
 

Ähnlich wie Drush installation guide (20)

Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011
Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011
Pavlenko Sergey. Drush: using and creating custom commands. DrupalCamp Kyiv 2011
 
Single node setup
Single node setupSingle node setup
Single node setup
 
DevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentDevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal Deployment
 
Drush in the Composer Era
Drush in the Composer EraDrush in the Composer Era
Drush in the Composer Era
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - Entorno
 
Development Setup of B-Translator
Development Setup of B-TranslatorDevelopment Setup of B-Translator
Development Setup of B-Translator
 
Drush
DrushDrush
Drush
 
Drush for drupal website builder
Drush for drupal website builderDrush for drupal website builder
Drush for drupal website builder
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013A Drush Primer - DrupalCamp Chattanooga 2013
A Drush Primer - DrupalCamp Chattanooga 2013
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev Machine
 
Ubuntu And Parental Controls
Ubuntu And Parental ControlsUbuntu And Parental Controls
Ubuntu And Parental Controls
 
Linux
LinuxLinux
Linux
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy System
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 
Hadoop completereference
Hadoop completereferenceHadoop completereference
Hadoop completereference
 
Drush deploy presentation by Goruachev Mikhail
Drush deploy presentation by Goruachev MikhailDrush deploy presentation by Goruachev Mikhail
Drush deploy presentation by Goruachev Mikhail
 
Drupal on your laptop
Drupal on your laptopDrupal on your laptop
Drupal on your laptop
 

Drush installation guide

  • 1. Drush Installation Guide Overview Drush is a command line shell and scripting interface for Drupal. The purpose of this installer is to copy all required Drush files and third party components that Drush is referencing. The installer works on Windows OS. Optionally the installer configures Windows Remote Management and environment settings. Licensing Drush Installer installs and/or uses the following components. Please refer each corresponding URL for more information about its licensing. Drush - http://drupal.org/project/drush GnuWin32 - http://gnuwin32.sourceforge.net (including BZip2, Gzip, Less, Libarchive, Libiconv, Libintl, OpenSSL, Pcre, Tar, Wget, Zlib) PHP - http://windows.php.net cwRsync - http://www.itefix.no/i2/node/10650 WiX Tool - http://wix.sourceforge.net/ Setting the PATH Environment Variable Drush makes calls to executables without specifying full path to their location. In order to resolve the correct location, their full path should be included in %PATH% environment variable. This can be done by either installing the Register Environment Variables feature, or by running the Drush Command Prompt located on user’s desktop when installer completes. Run As Administrator IMPORTANT: Selecting Configure Windows Remote Management feature on systems that has User Access Control enabled requires running installer with elevated privileges. This can be done by right clicking on the MSI file and select Run As Administrator. This is required step for system having User Access Control enabled. Failure to do so will make WinRM configuration commands to fail due to MSI impersonation restrictions. System Requirements Support Operating Systems: Windows 7, Windows Vista SP2, Windows XP SP3+, Windows Server 2003 SP2+, Windows Server 2008, Windows Server 2008 R2. Hard disk: 100MB free space You must have administrator privileges on your computer to run the Drush Installer.
  • 2. Installation steps 1. Run DrushSetup.msi 2. Click Next on the Welcome page 3. Select features to install. See section Drush Installer Features below. IMPORTANT: If you select Configure Windows Remote Management feature, make sure that you run the installer using Run As Administrator option.
  • 3. 4. Click Install to proceed with installation
  • 4. 5. Click Yes if prompted to run as Administrator 6. Click Finish to complete the installation
  • 5. Drush Installer Features Drush Required Runtime This feature installs all Drush source files and places them in %ProgramData %PropeopleDrush folder. It is a required feature and is always installed. GnuWin32 Required Components This feature installs the GnuWin32 components below and places them in %ProgramFiles%PropeopleDrushGnuWin32. GnuWin32 tools are required for Drush to work on Windows. Drush makes calls to GnuWin32 tools without specifying full path to their location. In order to resolve the correct location, their full path should be included in %PATH% environment variable. This can be done by either installing the Register Environment Variables feature, or by running the Drush Command Prompt located on user’s desktop when installer completes. Php Required Runtime This feature installs PHPruntime in folder %ProgramFiles%PropeopleDrushPhp. Drush makes calls to PHP runtime without specifying full path to its location. In order to resolve the correct location, its full path should be included in %PATH% environment variable. This can be done by either installing the Register Environment Variables feature, or by running the Drush Command Prompt located on user’s desktop when installer completes.
  • 6. There are pretty good chances that PHP runtime is already installed on user’s machine if you have used Web Platform Installer to install Drupal. However there is no a safe way to detect if PHP runtime is already installed. If PHP runtime is already installed on user machine and its full path can be resolved, you do not need to install this feature. Also make sure that a recent version of the PHP runtime is being used. A minimum version of 5.2 is required. Run php.exe -v see PHP runtime version. cwRsync Optional Components This feature installs cwRsync in folder %ProgramFiles%PropeopleDrushcwRsync. It adds support for rsync command that is used for remote command invocation when Windows calls Linux/Unix server. Register Environment Variables This feature adds full path of all installed features to PATH environment variable. Pay attention that Windows has a limit of environment variables total length of 2047 characters as described in KB830473. If you exceed this length, some or all paths to Drush components will not be added and will make Drush not operational. In such case you can use Drush Command Prompt that gets installed on your desktop to start new command prompt. Drush Command Prompt simply runs new command prompt and executes DrushEnv.bat to set all required paths. If PATH still gets truncated, run new Command Prompt window and remove all unnecessary PATH values. Then run DrushEnv.bat to set all Drush required paths. Configure Windows Remote Management This feature enables remote command invocation from Windows client (where Drush is being installed) to a Windows Server (where Drupal is hosted). Manual configuration of WinRM can be performed by running WinRMConfig.bat file located in %ProgramFiles%PropeopleDrush. In this case this feature need not to be installed. This feature has also a sub-feature called Accept incoming requests. It should be enabled when installing Drush on Windows Server hosting the Drupal installation. It enables incoming connections and allows remote Drush commands to be sent to the server. By default WinRM remote connections are enabled over HTTP port 80 using WinRM Compatibility Http Listener. Port can be changed by either setting WINRMPORT property of the MSI installer or by calling WinRMConfig.bat [port number]. Read Installation and Configuration for Windows Remote Management for more information on how to configure WinRM.