Drupal on IIS

The purpose of this group is to share information and best practices about installation, configuration, and optimization of Drupal on IIS.

Drupal on IIS stripping action from HTML forms

· · · · ·

We've just installed drupal on an IIS machine in our office. It has installed successfully, however we cannot create any content or save settings in the admin menu.

It seems that the "action" attribute in the HTML FORMs are being cleared. For example, when you create a page, the form on index.php?q=node/add/page should post to (ie, the form element's action attribute) "index.php?q=node/add/page". (like it does on all the Mac and Linux servers I've setup with drupal).

What happens is that is just goes to "index.php".

4 comments · Read more
chicagomom's picture

500.50 error on IIS7, and a solution

Just ran into this one, and I know others will too so I'm passing it along. When using IIS7 with the MS URL Rewrite module, I ran into a 500.50 server error when trying to view uploaded images. The issue has to do with the web server's use of c:\windows\temp to temporarily upload files and the permissions associated with that folder. A detailed explanation and two solutions can be found on this blog post.

Login to post comments
mtndan's picture

Drupal on a virtual subdirectory - forms not posting correctly

Hi folks,

I'm using ISAPI Rewrite 3 on an Acquia Drupal site, on IIS6.

The external url of the site is something like this:

http://site.domain.com/directory

The site itself isn't actually in a subdirectory, but the url has to have that structure to conform with our firewall/web access control system.

By setting the $base_url parameter in Drupal's settings.php file to the url above, I have the site mostly working fine.

Login to post comments · Read more

How to get custom 404 and 403 error pages working with IIS7. Modify web.config's httpErrors?

I'm running Drupal 6 on IIS 7. I'm trying to get custom error pages working so that when users aren't logged in and they try to access restricted content they're redirected to the login page. For this I'm intending to use the logintoboggan or custom_error modules. However, regardless of how I set my default error pages in admin/settings/error-reporting I still see the standard 403 page. Is this because I need to do something in IIS web.config to tell IIS to observe those error page settings in admin/settings/error-reporting?

4 comments
mtndan's picture

Failover architecture with IIS6

Hi folks,

Any ideas for a failover architecture with Drupal on IIS6? Basically looking for a way to keep a "hot spare" in sync with the live box and switchover automatically if the main box goes down.

Thanks in advance,

2 comments
mtndan's picture

404 Error on all php pages - ideas?

Hi folks,

I'm successfully running Drupal on IIS6 with PHP5 (fastcgi) which I installed via the IIS-Aid.com installer.

I am trying to setup a new website on the same server, same IIS, and have matched all the settings as the working site.

On the new site however, I can't get php files to execute - it just returns a HTTP Error 404 - File or directory not found.

Any ideas? This is driving me nuts.

Thanks!

2 comments

Drupal development and implementation | City of St Charles, IL

Employment type: 
Contract
Telecommute: 
Not allowed

Hello!

In case you haven't seen this already, wanted to pass along this request for proposals from the City of St Charles.

http://drupal.org/node/558274

Regards,
Carolyn Shannon

mtndan's picture

PHP SMTP with Authentication

Hello again :)

Any tips on enabling php email when the smtp server requires authentication?

Thanks in advance.

2 comments
mtndan's picture

File Permissions on IIS

Hi folks,

I'm trying to install Drupal on IIS6 and think I have some file permissions issues. I've made it past the database screen on the installer, but am getting this php error:

PHP Warning: fopen(./sites/default/settings.php) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\includes\install.inc

It appears the Internet Guest Account as Read and Execute permissions on everything. What else could I look for?

6 comments
mtndan's picture

Production Drupal Sites on IIS (or windows in general) - Experiences?

Hi folks,

Does anyone know of popular Drupal sites "in the wild" running on IIS, or even Apache/Windows?

I'm building an internal application at work and am forced to run on Windows Server VMs. From the experimentation and research I've done, Drupal runs fine on IIS but I have no experience or idea what will happen when we start to get hundreds of concurrent authenticated users. I'm more comfortable scaling Apache, but I haven't done it on Windows.

Any experiences or stories would be appreciated. Thanks!

18 comments
chicagomom's picture

IIS7 WebPI install of PhP 5.2.10 missing some handy dlls

Just wanted to pass along my experience using the WebPI install of PhP 5.2.10. It works ok out of the box for Drupal6 but I discovered that several dlls are not enabled by default that are helpful for several Drupal tasks, notably:

tidy (see this iis.net forum post)
xsl
pdo and pdo_mysql - these are required by Drupal7
mcrypt - required by phpmyadmin

Login to post comments · Read more
chicagomom's picture

Acquia Drupal's web.config file

At the risk of talking only to myself once again, I thought it might be useful to someone to put up the web.config file generated by the Web Platform Installer's Acquia Drupal installation, since if you're not using the WebPI you need to generate this yourself. It looks like it covers pretty much everything in the standard .htaccess file. Anyone know if there's anything it doesn't do? Anyway, here it is:

2 comments · Read more
chicagomom's picture

Multi-site on IIS: done it?

Anyone out there successfully done a multi-site setup on IIS? How did you do it? I'm looking to flesh out the documentation - so far all I can find is this discussion in the forums...

3 comments
chicagomom's picture

Documentation help wanted: Clean URLs on IIS

Since getting clean URLs on IIS seems like an important topic in its own right, I've taken the liberty to break it out into its own wiki resource. Please help me flesh out the documentation if you have some time. I'm hoping we can get it into good enough shape to incorporate it into the Drupal documentation.

Let's make it easier for people to get this done!

Login to post comments
chicagomom's picture

Clean URLs on IIS

The best method to get clean URLs on IIS depends on which version of IIS you are using. Here are some version-specific resources.

Read more
chicagomom's picture

File system permissions on sites/default/files

Breaking this one out into its own thread...

The original question posted had to do with file system permissions needed to get some modules working.

Login to post comments · Read more

Drupal Programmer | Area Pro

Employment type: 
Full time
Employment type: 
Part time
Employment type: 
Contract
Telecommute: 
Not allowed

Drupal Programmer

PLEASE DO NOT APPLY FOR THIS POSITION IF YOU DON’T LIVE WITHIN 30 MINUTES OF CONCORD CALIFORNIA. THIS IS NOT A VIRTUAL POSITION. MUST BE A U.S CITIZEN. NO CALLS PLEASE.
Description and Obligation:
Small but growing real estate franchise seeking an individual who is well spoken, great with computers, and knowledgeable about social networking. This is a full time position in our Concord, California office.

Read more
chicagomom's picture

Mollom Spam Control Add-On for IIS Environments

The Mollom blog included some great news for IIS users this week:

Zion Security, a Belgium-based company specializing in the security analysis of web sites and systems, has used Mollom's open API to develop a Microsoft IIS module utilizing Mollom to detect and prevent comment and posting spam.

This module is unique in that it is a HTTP module coded for Microsoft IIS, comparable to an Apache module, and allows Mollom to potentially expand to a number of ASP/IIS based systems.

Login to post comments · Read more
chicagomom's picture

Issues and Problems

Note: For issues with Drupal on IIS, please submit a discussion rather than a wiki, which does not allow for comment and discussion.

Here are some that were submitted - feel free to add yours as well, or offer solutions.

Global Redirect - IIS with ISAPI_ Rewrite & clean_url ends with endless loop

File system permissions on sites/default/files - need to give the IIS process owner permissions (details?)

Write protecting the settings.php file - needed to do an 'attrib +r settings.php' from a cmd prompt to finally get the warning to go away.

2 comments
cjdavis's picture

Issues and Tools

This wiki is a place to start if you're looking for information on troubleshooting Drupal on IIS. If you've got a tool or ran into an issue and found a fiix for it, add it here!

Read more
Syndicate content