Installing Drupal on Windows 2016 

Installing on Windows Server 2016/Windows 10 

Last updated on  

14 October 2017  

Do not use the web platform installer for any components of your Drupal setup. 

Configure IIS 

  1. Install the following roles:  
    • HTTP Redirection 
    • CGI 
    • IIS Management Console 
    • .NET Extensibility 3.5 
    • .NET Extensibility 4.6 
  2. Install the following features:  
    • .NET Framework 3.5 
    • .NET Framework 4.6 
    • Windows PowerShell 
  3. Download and install the URL Rewrite module for IIS: 

Install and Configure PHP 

  1. Download the appropriate Visual C++ Redistributable for Visual Studio 2012 for your corresponding version of PHP 7.  
  2. Download the latest non-thread safe version of PHP 7 and extract the files to “C:\php” 
  3. Rename php.ini-production (for production servers) or php.ini-development (for development servers) to php.ini. Do not rename both. 
  4. Uncomment (if needed) and set the following settings:  
    • fastcgi.impersonate = 1 
    • cgi.fix_pathinfo = 0 (if you get a “No input file specified option”, enable this option) 
    • cgi.force_redirect = 0 
    • extension_dir = “ext” 
    • error_log = “C:\inetpub\logs\php_error.log” 
    • curl.cainfo = “C:\php\extras\ssl\cacert.pem” 
    • mbstring.http_input = pass 
    • mbstring.http_output = pass 
  5. Enable the following extensions:  
    • Your respective database extension(s) 
    • Xmlrpc 
    • Openssl 
    • Curl 
    • Mbstring 
    • Gd2 
  6. Add the following extensions:  
    • extension=php_wincache.php 
    • zend_extension=php_opcache.php 
  7. Add “C:\php” to your system PATH variable. 
  8. Download the latest cacert.pem file from here ( and move it to C:\php\extras\ssl 
  9. In the default document settings of IIS Manager, add “index.php” as a default document. 
  10. Open the Handler Mappings section of your host in IIS Manager and add a module mapping with the following settings:  
    • Required Path: *.php 
    • Module: FastCgiModule 
    • Executable: C:\php\php-cgi.exe 

For more information configuring PHP for IIS, see

Install WinCache and Test PHP Installation 

  1. Navigate to this link: 
  2. Click the “additional downloads” link underneath the “Install this extension” button. 
  3. Download the appropriate installer for your respective PHP version. 
  4. Run the installer and extract the files to a temporary location. 
  5. Copy “php_wincache.dll” to C:\php\ext\. 
  6. Create a file called “phpinfo.php” with the code “<?php phpinfo();”. Save this file in your IIS server root (C:\inetpub\wwwroot\ by default). 
  7. On your server, navigate to https://localhost/phpinfo. You should see the PHP info screen. 

Install and Configure MySQL 

Be sure to use MySQL rather than MSSQL or SQL Server. 

  1. Download and run the MySQL Installer: 
  2. Install MySQL Server, Workbench, Notifier, and Shell. If the install doesn’t work the first time, run it again and there should be no problems. If there still are problems, download the 
    1. While configures MySQL Server, do not enable X Protocol. 
  3. Open MySQL Workbench. If there is an error opening MySQL Workbench, uninstall and reinstall it. If you’re prompted that you OS isn’t supported by MySQL Workbench, ignore the warning. 
  4. Create a database for your Drupal site and a user with appropriate privileges for that database. 

Install Composer and Drush 

Regardless of your Drupal version, do these steps to be sure Drush is globally installed on your machine. 

  1. Download that Composer Setup executable from
  2. Run the executable. 
  3. Open an elevated command prompt or elevate power shell and run: 
    composer global require drush/drush 

Configure Site Folder Permissions 

  1. Create a new site in IIS Manager for your Drupal site. Be sure it has a unique Application Pool and set “Connect as…” to “Application user (pass-through authentication)”. 
  2. Go to the Authentication section of your site’s settings. Edit “Anonymous Authentication” to be “Application pool identity”. 
  3. Give the user “IIS APPPOOL\[app pool name]” write access to all the files in your Drupal project. 

Download cURL, gzip, wget, and LibArchive (D7 only) 

  1. Download cURL from and extract the files into C:\Program Files\cURL 
  2. Download LibArchive from Run the installer and use the default instructions. 
  3. Download gzip from Run the installer and use the default options. 
  4. Download wget from Run the installer and use the default options. 
  5. Add C:\Program Files\cURL\bin and C:\Program Files (x86)\GnuWin32\bin to your system path variable.