I am trying to move MediaWiki websites from Windows Server 2003 (IIS 6) to Windows Server 2008 R2 (IIS 7.5). I installed the same version of MediaWiki to the destination server in order to avoid conflict. I dumped, move and restore the MySQL database; zip, move and restore the MediaWiki files which includes the images, LocalSettings.php files for each MediaWiki website.
I can't browse the websites now, I believe I need to do something else but I am not sure. I am totally new to MediaWiki. Any help appreciated.
Thanks in advance.
$wiki_name = substr($_SERVER["REQUEST_URI"], 1, strpos($_SERVER["REQUEST_URI"], "/", 1) - 1);
$wgScriptPath = "/${wiki_name}";
$wgLogo = "images_${wiki_name}/${wiki_name}_logo.gif";
$wgUploadPath = "$wgScriptPath/images_${wiki_name}";
$wgUploadDirectory = "$IP/images_${wiki_name}";
require_once("LocalSettings.${wiki_name}.php");
unset($wiki_name);
LocalSettings.php has above section which has a purpose of using multiple mediawiki websites. And each LocalSettings.website.php files have section below:
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "database";
$wgDBuser = "user";
$wgDBpassword = "password";
in order to identify which database is used by each website.
This is the picture I got when I browsed the MediaWiki wiki through IIS.
And from server log I got the following:
#Date: 2014-10-06 19:42:17
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2014-10-06 19:42:17 ::1 GET /mediawiki - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET4.0C;+.NET4.0E) 301 0 0 265
2014-10-06 19:42:17 ::1 GET /mediawiki/ - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET4.0C;+.NET4.0E) 200 0 0 78