Difference between revisions of "Updating mediawiki to 1.19.1"
(2 intermediate revisions by one user not shown) | |||
Line 49: | Line 49: | ||
= doing it again = | = doing it again = | ||
On 2013-03-02 I tried to do it again. This time I had to delete /srv/www/htdocs/StartProfiler.php whatever this is :( | On 2013-03-02 I tried to do it again. This time I had to delete /srv/www/htdocs/StartProfiler.php whatever this is :( | ||
+ | |||
+ | Then the Ratings extension did not work any longer and images were not displayed. The Ratings extension has gone for good so I removed it. | ||
+ | |||
+ | = See also = | ||
+ | * http://try-linux.blogspot.de/2013/10/pretty-url-in-mediawiki.html |
Latest revision as of 10:01, 22 October 2013
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.
Contents |
Backup
First I did a backup
File system
Backup of the file system:
/srv/www # cp -pr htdocs/ htdocs-backup
Update mediawiki
/srv/www # cp /root/mediawiki-1.19.1.tar.gz . /srv/www # tar xvzf mediawiki-1.19.1.tar.gz /srv/www # ls cgi-bin htdig htdocs htdocs-backup mediawiki-1.19.1 mediawiki-1.19.1.tar.gz /srv/www # chown -R wwwrun:www mediawiki-1.19.1 /srv/www # cp -pr mediawiki-1.19.1/* htdocs
wgServer problem
Then I had
LocalSettings.php:$wgServer = "http://www.linuxintro.org";
and
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
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
doing it again
On 2013-03-02 I tried to do it again. This time I had to delete /srv/www/htdocs/StartProfiler.php whatever this is :(
Then the Ratings extension did not work any longer and images were not displayed. The Ratings extension has gone for good so I removed it.