MediaWiki Administration: Unterschied zwischen den Versionen

Aus MattWiki
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 69: Zeile 69:
* Libraries
* Libraries


== Maintaining Cache Tables ==


=== l10n_cache Table ===
As of Mediawiki >= 1.16 contents of this table can be deleted and excluded from backups as it will be regenerated when needed.
Further reading: https://www.mediawiki.org/wiki/Manual:L10n_cache_table
=== objectcache Table ===
As of Mediawiki >= 1.30 the '''objectcache''' table is the default backend for the Main Stash service, and is also used by a small number of high-impact cache operations as fallback when no other cache backend is configured (e.g. Memcached). Its content can be safely deleted and excluded from backups as it will be regenerated when needed.
Further reading: https://www.mediawiki.org/wiki/Manual:Objectcache_table
== Backups ==
See [[MediaWiki konfigurieren#Backups erstellen]]
[[Category:Linux]]
[[Category:Linux]]
[[Kategorie:MediaWiki]]
[[Kategorie:MediaWiki]]

Aktuelle Version vom 27. April 2025, 19:41 Uhr

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:

How to Get the Page ID

The page ID is shown in the Page information of the page itself. The Page information is a menu item in the Toolbar of the page.

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

Maintaining Cache Tables

l10n_cache Table

As of Mediawiki >= 1.16 contents of this table can be deleted and excluded from backups as it will be regenerated when needed.

Further reading: https://www.mediawiki.org/wiki/Manual:L10n_cache_table

objectcache Table

As of Mediawiki >= 1.30 the objectcache table is the default backend for the Main Stash service, and is also used by a small number of high-impact cache operations as fallback when no other cache backend is configured (e.g. Memcached). Its content can be safely deleted and excluded from backups as it will be regenerated when needed.

Further reading: https://www.mediawiki.org/wiki/Manual:Objectcache_table

Backups

See MediaWiki konfigurieren#Backups erstellen