Greetings,
I've been tasked to build a Wiki site using MediaWiki(
www.MediaWiki.org) and I'm having a little bit of trouble.
I've got Windows Server 2k3 SP running IIS 6, PHP 5.3.3, and MYSQL 5.1. I'm also using php through the php-cgi.exe rather than the ISAPI. I've tried the ISAPI with the same results. All of these meet the requirements listed on the site.
My problem is when I browse to my Wiki
http://127.0.0.1/mediawiki/index.php?title=Main_Page I get an HTTP 404 error. I looked the the PHP error logs under C:\WINDOWS\TEMP\php-errors.log and I get the following error every time I try to load the page.
"[DATE&TIME] PHP Notice: Undefined index: REQUEST_URI in C:\Inetpub\wwwroot\mediawiki\includes\setup.php on line 185"
I've commented out the entire series of if statements where REQUEST_URI was and I'm still getting the 404 error but nothing is being logged to the php-errors.log, just thought I'd mention that.
I can create a simple index.html file and set it to my default document and it loads fine. I've even tried a test php file and it worked as well.
I'll post the string of statements I've commented out for your reference.
# Useful debug output
#if ( $wgCommandLineMode ) {
# wfDebug( "\n\nStart command line script $self\n" );
#} else {
# wfDebug( "Start request\n\n" );
# wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['
REQUEST_URI'] . "\n" );
#
# if ( $wgDebugPrintHttpHeaders ) {
# $headerOut = "HTTP HEADERS:\n";
#
# if ( function_exists( 'getallheaders' ) ) {
# $headers = getallheaders();
# foreach ( $headers as $name => $value ) {
# $headerOut .= "$name: $value\n";
# }
# } else {
# $headers = $_SERVER;
# foreach ( $headers as $name => $value ) {
# if ( substr( $name, 0, 5 ) !== 'HTTP_' ) continue;
# $name = substr( $name, 5 );
# $headerOut .= "$name: $value\n";
# }
# }
# wfDebug( "$headerOut\n" );
# }
#}
Any help is greatly appreciated of course!!