Topic on Project:Support desk

Moving mediawiki from linux to windows using postgres

3
Dazzer4020 (talkcontribs)

We are trying to move our wiki from an old linux box to a windows PC.

We have installed the same version of mediawiki on the windows PC (1.15) and have copied the localsettings.php file across and pointed it to the database on the linux box and we just get a http 500 error.

Also restored the database onto the windows pc and changed to use that but we get the same issue

Not sure where to go from here

Ciencia Al Poder (talkcontribs)

You first need to get a descriptive error message instead of a plain 500 error.

See Manual:How to debug. Look at error logs of the webserver, and enable error_reporting in PHP

Osnard (talkcontribs)

Does your PHP on Windows have PostGreSQL drivers enabled?

I'd recommend to set

$wgShowExceptionDetails= true;

$wgShowSQLErrors = true;

in your LocalSettings.php file to get an useful error message.

General hint when migrating from Linux to Windows: Linux has a case sensitive file system. Windows does not. Make sure you don't loose any files from your "images/" directory (e.g. "Some_Image.jpg" could be overwritten by "Some_image.jpg"). Also MediaWiki on Windows does not allow non-ascii-chars (Umlauts and other special characters) in file names.