Topic on Template talk:Main page

Images missing after move wiki to another server

4
MichaelZ70 (talkcontribs)

Hello!

I want to move my wiki installation from a Windows 2008 Server with IIS:

SoftwareVersion
MediaWiki1.24.1
PHP5.5.8 (cgi-fcgi)
MySQL5.5.25a-log

to a Windows 2012 Server with Apache:

SoftwareVersion
MediaWiki1.24.1
PHP5.6.8 (apache2handler)
MySQL5.6.24

I exported the database on the old server and imported on the new one and copied the complete mediawiki directory to the new server. Most all is working fine but all images are not displayed. There is only the link (name of the image) shown and not the image itself:

Old Wiki:

New Wiki:

Imagemagick is installed on the new Server.

Does anyon have an idea what went wrong?

Thank you in advance

Michael

MichaelZ70 (talkcontribs)

Hallo!

I found out the reason for the problem. All pages (and internal links) on the new Server are like this:

<servername>/mediawiki/index.php/Startseite

if I change the URL to:

<servername>/mediawiki/index.php?Titel=Startseite

all works fine.

But how or where can I change this?

Thank you in advance

Michael

MichaelZ70 (talkcontribs)

ok I found the solution. I added the following two lines to the localsettings.php

$wgScript = "{$wgScriptPath}/index.php";
$wgArticlePath = "{$wgScript}?title=$1";

now all works fine like before :-)

This post was hidden by 69.131.20.168 (history)