IIS not recognized: modify config_defaults_inc.php

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
jphuart
Posts: 3
Joined: 23 Nov 2006, 10:18

IIS not recognized: modify config_defaults_inc.php

Post by jphuart »

Windows server 2003
IIS 6
Mantis 1.0.6

Getting a blank page when login, while it was not the case when using an Apache server.

To avoid that, or you add

$g_use_iis = 'ON';

to your config_inc.php as proposed on the help forum.

Another way of doing it is to modify the config_defaults_inc.php to avoid to remember this if you migrate mantis to an Apache server.

Just add some quotes around ON and OFF into the Web Server section:

The original is

#############################
# Web Server
#############################

# Using Microsoft Internet Information Server (IIS)
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE not defined in case of php-cgi.exe
$g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
} else {
$g_use_iis = OFF;
}


To be corrected in (just add quotes around ON and OFF)

#############################
# Web Server
#############################

# Using Microsoft Internet Information Server (IIS)
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE not defined in case of php-cgi.exe
$g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? 'ON' : 'OFF';
} else {
$g_use_iis = 'OFF';
}

What do you think?
jphuart
Post Reply