Community Documentation

Drupal 4.7 on Windows/IIS Requires PHP in ISAPI mode

Last updated September 20, 2008. Created by eaton on March 31, 2006.
Edited by Wolfflow, sepeck, killes@www.drop.org. Log in to edit this page.

When installing Drupal version 4.7 and later on Windows servers running IIS rather than Apache, PHP must be run in ISAPI rather than CGI mode.

A relatively obscure bug in IIS(5.5) discards PHP session information when the PHP script that sets the session also redirects to another page. In Drupal 4.7 and later, the user login screen automatically redirects to the home page on a successful login. The IIS bug is triggered, preventing the new session data from being sent to the user's browser, and making it impossible for users to log in.

As the bug only affects IIS when PHP is running in CGI mode, switching to ISAPI mode will solve the problem.

Note: IIS(6.x) looks like it does work, apart of some MySQL permissions errors to clean up (LOCK tables specifically). If it doesn't work then you may have to switch
to ISAPI mode.

About this page

Drupal version
Drupal 4.7.x

Develop for Drupal

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here