Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,900 courses, including more Developer and personalized recommendations.Start Your Free Trial Now
- View Offline
The course describes how to manage users, download and install modules and themes, archive and restore your entire site, and employ site variables for fast, full control over your Drupal sites. Plus, discover how to script an entire Drupal site installation with and without site profiles.
- What is Drush?
- Installing the prerequisite files
- Installing Drush with PEAR, manually, and just for Windows
- Installing Drupal sites
- Managing themes
- Controlling user access
- Controlling cache and cron
- Reading logs
- Updating modules
Skill Level Intermediate
An official installer for Drush is available for Microsoft Windows, providing a convenient method for installing Drush and its needed components. The homepage is at: drush.org/drush_ windows_installer, and it provides current project status, links to the files, and installation instructions. The Windows installer usually lags a bit behind the officials Drush release, illustrated by the rest of the course using Drush 5.8 and the Windows installer still on 5.7.
The Drush installer supports Windows 7, Windows Vista Service Pack 2 or higher, Windows XP Service Pack 3 or higher, Windows Server 2003 Service Pack 2 or higher, Windows Server 2008, and Windows Server 2008 R2. There are also a couple of supported shells, minsw and msysgit which are recommended, the command prompt, and PowerShell. Msysgit is not distributed with the full Drush installer as it's a separate project.
However, it does provide Git in patch support. The full installer for official Git is recommended but Shell installation is not covered in this course. There are some limitations. Most SQL commands will work with SQL Server but the dump database command will not work. SQL-sync is not really working, and Drush make does not work correctly in 5.7. To use the Windows installer, download the installer then run it with the user account that has administrator privileges.
Click Next on the Welcome page, you will be given a number of options. The first three items are required runtimes, leave them alone. The fourth, add support for the Rsync command if you're interacting with Linux and UNIX servers. Register Environment Variables is a useful shortcut that will automatically add all required paths to the Path Environment Variable. The last option, Configure Windows Remote Management, allows remote commands to be used from the client. Where Drush is installed to a remote Windows server where Drupal is hosted.
For more in-depth details on these options refer to the installation guide linked from the bottom of the Windows installer homepage. When I'm done configuring the options, click Next and then Install. If prompted, say yes to run as administrator, then click Finish. Verify that Drush is installed by double -clicking on the Drush command's prompt and typing the following, "drush". In the next chapter, I will demonstrate how to install a site using Drush, how to get information about the site and the modules, and how to manage modules, users, and more.