Updating mediawiki to 1.19.1

From ThorstensHome
Revision as of 17:59, 2 September 2012 by WikiSysop (Talk)

Jump to: navigation, search

On August 24, 2012 my goal was to have FaceBook Comments on this page. It did not work with mediawiki 1.16. The page itself states it runs on mediawiki 1.18 so I decided to update to the latest version of mediawiki which was 1.19.1.


wgServer problem

Then I had

LocalSettings.php:$wgServer           = "http://www.linuxintro.org";


LocalSettings.php:$wgScriptPath       = "/staerk/thorsten";

As soon as I change to $wgServer to http://www.staerk.de and $wgScriptPath to "/thorsten" the style of the page changes to a very ugly one, just as if the skins were not readable any more.

Seems I had a line in the apache config that made apache redirect strangely:

   Alias /thorsten /srv/www/htdocs/staerk/thorsten/index.php

after uncommenting the thing worked.

Skin change

Now after the update the default skin is no longer MonoBook but VectOr.

Short URL issue

Before my articles were on http://www.staerk.de/thorsten/article, now I have to do the short URL rewrite again.

After implementing https://www.mediawiki.org/wiki/Manual:Short_URL/Apache the style was lost as described here.

Now I have two situations. Either styles work but I cannot access www.staerk.de/thorsten/article or I can access www.staerk.de/thorsten/article but styles do not work. To switch between these two situations I need to do the following changes to LocalSettings.php and /etc/apache2/httpd.conf

The following line in httpd.conf makes the styles get lost:

RewriteRule ^/?thorsten(/.*)?$ %{DOCUMENT_ROOT}/thorsten/index.php [L]


Solution??? Follow this other tutorial, add ScriptAlias also for /thorsten/skins NO! The problem was that load.php now loads the CSS, so you have to except load.php5 from the alias like this:

Alias /thorsten/load.php5 /srv/www/htdocs/staerk/thorsten/load.php5