MediaWiki Administration

Aus MattWiki
Version vom 24. Januar 2022, 17:23 Uhr von Matt (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

This page describes how do execute different maintenance tasks on the MediaWiki server instance.

Maintenance Scripts

Delete Old Versions

The following script located in the maintenance subfolder deletes old versions / revisions of a page.

When started with --delete it actually deletes the revisions. Otherwise it displays, how many items it would delete.

Specifing a page ID limits the actions to the given page.

Examples:

Shows how many revisions for page ID 111 it would delete:

php deleteOldRevisions.php 111

Delete all revisions for page ID 111

php deleteOldRevisions.php --delete 111

Source: https://www.mediawiki.org/wiki/Manual:DeleteOldRevisions.php

Additionally perhaps rebuild recent changes:

Rebuild Recent Changes

The following script located in the maintenance subfolder rebuilds recent changes.

php rebuildrecentchanges.php

Update Version

https://www.mediawiki.org/wiki/Manual:Upgrading

Download and extract:

$ cd /path/to/your/new/installation/  
$ wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.0.tar.gz
$ tar -xvzf mediawiki-1.35.0.tar.gz 
$ rm mediawiki-1.35.0.tar.gz

Copy from old directory:

  • LocalSettings.php
  • Images Directory
  • favicon.ico
  • htaccess if existing

Update:

Go to maintenance subdirectory and execute:

$ php update.php

Check:

Check special page

https://yourdomain.tld/wiki/Special:Version
  • Current Version
  • Start Points
  • Extensions
  • Libraries