Drupal Iis

Deploy drupal iis to bare metal and public or private clouds using the Juju GUI or command line. Drupal is a dynamic web site platform which allows an individual or community of users to publish, manage and organize a variety of content, Drupal integrates many popular features of content management systems, weblogs, collaborative tools and discussion-based community software into one easy-to-use package. There isn't much IIS needs to do to make multi-sites to work - It's more with how you name your folders and have your settings.php file. You need to point IIS to the drupal/sites folder and that's it on that end. But then you need to name you sites folders appropriately such that they are the same as what you have your IIS host header.

  1. Drupal 9 Is
  2. Iis Drupal 8
  3. Drupal Windows Iis
  4. Php Iis Server


Drupal Iis

Drupal is a dynamic web site platform which allows an individual orcommunity of users to publish, manage and organize a variety ofcontent, Drupal integrates many popular features of contentmanagement systems, weblogs, collaborative tools and discussion-basedcommunity software into one easy-to-use package.

  • Series:
  • Tags:

Drupal is a free and open-source content-management framework written in PHP and distributed under the GNU General Public License. It is used as a back-end framework for at least 2.1% of all Web sites worldwide ranging from personal blogs to corporate, political, and government sites.

General Usage

To deploy a Drupal service on IIS:

As a database backend, one of the following relational databases can be used: MySQL, PostgreSQL or MSSQL.

To add a relation with the MySQL database charm:

IisDrupal Iis

To add a relation with the PostgreSQL database charm:

To add a relation with the SQL Server Express database charm:

Scale out usage

To add another unit to your deployment:

To deploy a memcached server and add memcache caching to the Drupal deployment.

To add a reverse proxy relation with haproxy and distribute connections from one frontend port to your charm units.

  • site-name - Name of the Drupal website.

  • site-mail - E-mail used by Drupal to send notifications.

  • admin-user-name - User name used by admin account.

  • admin-password - Password used by the admin account.

  • admin-mail - E-mail of the administrative account 'admin'.

  • php-max-execution-time - The maximum execution time in seconds a PHP script is allowed to take.

  • php-max-requests - Maximum number of request for the IIS PHP handler.

To dynamically change a config option:


(string) E-mail used by the admin user.
[email protected]
(string) Password used by the admin user.
(string) Admin user name used by Drupal website. This is set only at database initialization.
(string) Database name
(string) Database user name
(string) Download link for the zip archive with Drupal 7 core files.
(string) Download link for the Drush 6 zip archive.
(int) Port used by the Drupal IIS website. After a fresh instalation ofIIS, port 80 is already used by 'Default Web Site'.
(string) Download link for the zip archive with Memcache PHP 5.4 NTS (x86)extension for Windows.
(string) Download link for the zip archive with Drupal's memcache module.
(string) Download link for the zip archive with Drupal MSSQL drivers.
(string) Download link for the MySQL Windows client installer. This is neededwhen creating a database relation with the MySQL charm.
(string) Download link for the PostgreSQL 9.4.x (x86) zip archive with Windowsbinaries.
(int) The number of seconds a PHP script is allowed to run. If this isreached, the script returns a fatal error.
(int) Maximum number of request for the IIS PHP handler.
(string) Download link for the PHP MSSQL Drivers installer.
(string) Download link for the PHP 5.4.x VC9 (x86) NTS zip archive.
(string) Download link for the MSSQL Command Line Utilities 11 (x64) installer.
(string) E-mail address used by Drupal to send notifications such as passwordchanges and e-mails sent during registration.
[email protected]
(string) Name of the Drupal website.
Drupal IIS Web Site
(string) Download link for the MSSQL 2012 Native Client (x64) installer.
(string) Download link for the MSSQL ODBC Driver 11 (x64) installer.
(string) Download link for the IIS URL Rewrite Module version 2 (x64) installer.
(string) Download link for the Microsoft Visual C++ 2013 Redistributable (x86)version 12 installer.
(string) Download link for the Microsoft Visual C++ 2008 SP1 Redistributable (x86)version 9 installer.

by Ruslan Yakushev


Drupal is a free, open-source content management system (CMS) software that lets individuals or communities of users easily publish, manage, and organize a wide variety of content on a Web site.

For more information about Drupal, visit the Drupal Web site.

This article describes how to install and configure Drupal for use with the FastCGI extension on Internet Information Services 7 (IIS 7) and above on Windows® Web Server 2008. The instructions assume that you have set up and configured the FastCGI extension and the PHP libraries. The instructions have been tested and found to work with the following software versions:

  • PHP 5.2.9
  • MySQL 5.1.34
  • Drupal 6.14

Drupal 9 Is


From the base default configuration file provided by PHP, modify the following lines in your Php.ini configuration:

  • Define extension_dir as c:phpext (for example, the location of your PHP extensions directory).
  • Uncomment extension=php_mysql.dll in the extensions list to enable MySQL support.

In order for Drupal to work correctly with IIS 7 and above, it is necessary to install an update for the IIS FastCGI module for IIS 7.

Download and Unpack the Application

First, download the latest stable release of Drupal. For this article, Drupal version 6.14 was used (future versions are likely to be similar to install). Uncompress the Drupal files and copy them to C:Inetpubwwwrootdrupal (or another directory of your choosing).

Before running the Drupal installer, create the configuration file Settings.php, which Drupal uses to store key configuration settings. Assign write permissions to it with the command (from the installation directory):

  1. Copy the .sitesdefaultdefault.settings.php file to .sitesdefaultsettings.php.

  2. Grant 'write' permissions to the file.

  3. The installer will modify the Settings.php file with information provided during the installation process.

  4. Check to ensure that the file permissions are set back to 'read only' once the installation is complete. If the file permissions did not change back, you must change them manually with the command:

  5. Drupal uses the SitesDefaultFiles directory to store temporary files and therefore must be able to write and modify files in this folder.

  6. Create the folder:

  7. Grant 'modify' permissions to the folder:

Set Up the Database

Before starting the installation procedure for Drupal, you must create a database on your server. Also create a user and grant this user 'db ownership' permission to the database. This article uses the following database information:

Iis Drupal 8

  • Database name: drupal
  • Database user: drupal
  • Account password: drupal

Run the Installation Script

Drupal Iis
  1. Open a Web browser, and go to http://localhost/drupal/. The first page of the installation script appears. Click Install Drupal in English. The Verify requirements step should proceed automatically unless you are missing requirements.

    Figure 1: Choose language page

  2. On the Database configuration page, type the following information:

    • Database name: drupal

    • User name: drupal

    • Password: drupal

      Click Save and continue. The required database tables are created, and the configuration is saved into the SitesDefaultSettings.php file. Remove the 'modify' permissions on this file.

      Figure 2: Database configuration page

  3. On the Configure site page, enter the required configuration information.

    Figure 3: Configure site page

Enable Clean URLs

Drupal Windows Iis

By default, Drupal uses query string parameters for all the URLs it generates for your Web site. With the URL Rewrite Module, however, you can create 'clean URLs.'

IIS 6.0 does not have URL rewriting capabilities, so you can use a third-party URL rewriting product such as ISAPI Rewrite or Ionics ISAPI Rewrite Filter.

IIS 7 and above have URL rewriting support, which can be enabled by installing the URL Rewrite Module.

The following instructions describe how the URL Rewrite Module for IIS 7 and above can be used to enable clean URLs in Drupal.

Drupal 9 is
  1. Open the Web.config file located in C:inetpubwwwrootdrupal folder. If you do not have a Web.config file in the drupal directory, create it.

  2. Copy and paste the following XML code into this file.

  3. Save the web.config file.

  4. Open a Web browser, and go to http://localhost/Drupal/index.php?q=admin/settings/clean-urls.
    Figure 4: Clean URLs page

  5. Under Clean URLs, select the Enabled option button, and then click Save configuration. If you successfully changed the URL format, all the URLs are represented in a hierarchical form that does not use query string parameters (for example, http://localhost/Drupal/admin/settings/clean-urls).


This article updates: ' Drupal on IIS' by Ruslan Yakushev, published on September 19, 2008.

Links for Further Information

Php Iis Server

  • Setting up FastCGI for PHP.
  • Using FastCGI to Host PHP Applications on IIS 7.0 and Above.
  • Installing PHP on Windows Vista with FastCGI.
  • Installing FastCGI Support On Server Core.
  • FastCGI forum.
  • PHP community forum.
  • Clean URLs on IIS.