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?
IIS not recognized: modify config_defaults_inc.php
Moderators: Developer, Contributor