0
Managing Drupal onWindows with Drush           Alessandro Pilotti              @alexpilotti          MVP ASP.NET / IIS    ...
Drush Drush is a command line shell and scripting interface  for Drupal Very useful for Deployment and Management Windo...
Drush Requirements The installer handles all the requirements PHP   Drush is written in PHP GnuWin32   Required *nix ...
Drush commands http://drush.ws/help/5 Examples (just a small subset)!      core-status,status      site-install,si   ...
Drush aliases Local single site:   Just “cd” in the site’s directory and issue Drush commands Multiple local sites or r...
Drush aliases example
Windows Remote                Management Windows does not provide an SSH server WinRM needs to be configured on the serv...
Windows Remote             Management Check it with e.g.:   winrs –r:remoteserver cmd Credentials   In aliases.drushrc...
Linux remote management            via SSH SSH can be used w/o providing a remote server password On the client (Windows...
Upcoming SlideShare
Loading in...5
×

Managing Drupal on Windows with Drush

3,274

Published on

When it comes to Drupal management and deployment, Drush is a must. This webcasts is about installing and configuring Drush on Windows, in order to manage local and remote Drupal sites on Windows and Linux.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,274
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Managing Drupal on Windows with Drush"

  1. 1. Managing Drupal onWindows with Drush Alessandro Pilotti @alexpilotti MVP ASP.NET / IIS Windows Azure Insider MCSD, MCAD, MCSE, MCDBA, MCT Red Hat Certified Engineer
  2. 2. Drush Drush is a command line shell and scripting interface for Drupal Very useful for Deployment and Management Windows installer available  http://drush.ws/drush_windows_installer  Targets Drush 5
  3. 3. Drush Requirements The installer handles all the requirements PHP  Drush is written in PHP GnuWin32  Required *nix tools not available on Windows cwRsync  For site / database synchronization with Linux hosts WinRM  For remote management of Windows hosts
  4. 4. Drush commands http://drush.ws/help/5 Examples (just a small subset)!  core-status,status  site-install,si  pm-download, dl  pm-enable, en  clear-cache, cc  watchdog-show, ws  self-update  updatedb  core-rsync, rsync  sql-sync Modules can provide additional commands  E.g. apachesolr
  5. 5. Drush aliases Local single site:  Just “cd” in the site’s directory and issue Drush commands Multiple local sites or remote sites  Create an alias file:  %USERPROFILE%.drushaliases.drushrc.php  Aliases con be generated manually or with:  “cd” in the site’s directory  drush sa @self  drush sa –with-db @self  Includes also db details  Example: drush @remote status
  6. 6. Drush aliases example
  7. 7. Windows Remote Management Windows does not provide an SSH server WinRM needs to be configured on the server  sc config "WinRM" start= auto  net start WinRM  winrm quickconfig  Uses HTTP or HTTPS  The latter requires a trusted non self signed certificate WinRS (Windows Remote Shell) is the client  Easiest configuration:  WinRM set winrm/config/client @{TrustedHosts="*"}  * can be replaced with a list of trusted servers
  8. 8. Windows Remote Management Check it with e.g.:  winrs –r:remoteserver cmd Credentials  In aliases.drushrc:  remote-user  winrs-password  As an alternative (better security):  cmdkey /add:remoteserver /user:username /pass  Not necessary in a domain or with pass-through AuthN when using the same user
  9. 9. Linux remote management via SSH SSH can be used w/o providing a remote server password On the client (Windows) start a Drush Command Prompt  set HOME=%USERPROFILE%  ssh-keygen  Copy %USERPROFILE%.sshid_rsa.pub to the server (Linux) On the server  cat id_rsa.pub >> ~/.ssh/authorized_keys  chmod 600 ~/.ssh/authorized_keys
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×