Heine

  • Home
  • Drupal
  • About
  • Contact
Home

Drupal HEAD and HTTP 500 errors on IIS 7

Heine —Fri, 09/01/2009 - 12:41

If you use PHP via FastCGI on IIS 7 and installing Drupal HEAD (7.x-dev) results in an HTTP 500 error, you may need to increase a number of timeout settings. The PHP.ini ones are fairly straightforward, but setting the activityTimeout for the FastCGI module is not intuitive.

Open a Command prompt with Administrative rights and enter:

%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\path_to_cgi\php-cgi.exe'].activityTimeout:600

The path to cgi should be replaced with the path of the PHP binary you registered with IIS. You must wrap the path in additional double quotes if it contains spaces. Example:

%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='"C:\Program Files (x86)\PHP\php-cgi.exe"'].activityTimeout:600

To get easier access to such settings, install the Administration Pack for IIS:

  • Administration Pack for IIS 7.0 CTP2 - x86
  • Administration Pack for IIS 7.0 CTP2 - x64
  • Drupal
  • IIS

Recent posts

  • Bounties: What to do with a high impact Drupal vulnerability?
  • Drupal CSRF Exploit reported on packetstorm
  • Homeopathie & Influenza tijdens pandemie 1918 - Opinie Feb 2012 Arts & Auto
  • In doubt? Read the specs!
  • About the Webform SA
more

Security reviews

I provide security reviews of custom code, contributed modules, themes and entire sites.

Contact me for a quote.

Follow @Ustima

Copyright © 2012 by Heine Deelstra. All rights reserved.

  • Home
  • Drupal
  • About
  • Contact