MediaWiki/Update: Unterschied zwischen den Versionen
Zeile 77: | Zeile 77: | ||
; mwExtUpgrader | ; mwExtUpgrader | ||
Ohne Git können Erweiterungen auch mit [https://www.mediawiki.org/wiki/MwExtUpgrader mwExtUpgrader] aktualisiert werden | Ohne Git können Erweiterungen auch mit [https://www.mediawiki.org/wiki/MwExtUpgrader mwExtUpgrader] aktualisiert werden | ||
<syntaxhighlight lang="bash" highlight="1" line> | |||
php8.2 mwExtUpgrader.phar | |||
Note that this release of code is not stable. Do not use for production. | |||
Welcome to use mwExtUpgrader. This script can help you bulk upgrade MediaWiki extensions. | |||
Continue with this action? (y/n) y | |||
Please type the absolute path to the MediaWiki directory: /var/www/wiki.foxtom.de/wiki/mediawiki | |||
mwExtUpgrader detected your MediaWiki version is 1.42.1 | |||
Confirm version to be upgraded (default: 1.42) | |||
[0] 1.39 | |||
[1] 1.40 | |||
[2] 1.41 | |||
> | [3] 1.42 | ||
> 3 | |||
PageOwnership unsupported REL1_42 | |||
DrawioEditor unsupported REL1_42 | |||
CodeEditor successfully upgraded | |||
MultimediaViewer successfully upgraded | |||
Renameuser successfully upgraded | |||
Cite successfully upgraded | |||
ConfirmAccount successfully upgraded | |||
PageImages successfully upgraded | |||
Gadgets successfully upgraded | |||
SyntaxHighlight_GeSHi successfully upgraded to 2.0 | |||
MobileFrontend successfully upgraded to 2.4.1 | |||
RevisionSlider successfully upgraded | |||
CategoryTree successfully upgraded | |||
SecureLinkFixer successfully upgraded | |||
Lockdown successfully upgraded | |||
Poem successfully upgraded | |||
Linter successfully upgraded | |||
TitleBlacklist successfully upgraded to 1.5.0 | |||
NativeSvgHandler successfully upgraded to 1.5.0 | |||
Math successfully upgraded | |||
Interwiki successfully upgraded to 3.2 | |||
ReplaceText successfully upgraded to 1.8 | |||
Echo successfully upgraded | |||
OATHAuth successfully upgraded to 0.5.0 | |||
TocTree successfully upgraded to 1.12.0 | |||
DiscussionTools successfully upgraded to 0.0.0 | |||
LoginNotify successfully upgraded to 0.1 | |||
PdfHandler successfully upgraded | |||
AbuseFilter successfully upgraded | |||
CiteThisPage successfully upgraded | |||
InputBox successfully upgraded to 0.3.0 | |||
ConfirmEdit successfully upgraded to 1.6.0 | |||
Scribunto successfully upgraded | |||
WikiEditor successfully upgraded to 0.5.4 | |||
MsUpload successfully upgraded to 13.5 | |||
Thanks successfully upgraded to 1.2.0 | |||
ParserFunctions successfully upgraded to 1.6.1 | |||
UserMerge successfully upgraded to 1.10.2 | |||
VisualEditor successfully upgraded | |||
TemplateData successfully upgraded to 0.1.2 | |||
Nuke successfully upgraded | |||
SpamBlacklist successfully upgraded | |||
ImageMap successfully upgraded | |||
TextExtracts successfully upgraded | |||
JSBreadCrumbs successfully upgraded to 1.1.1 | |||
MinervaNeue successfully upgraded | |||
Timeless successfully upgraded to 0.9.1 | |||
Vector successfully upgraded to 1.0.0 | |||
MonoBook successfully upgraded | |||
</syntaxhighlight> | |||
<noinclude> | <noinclude> |
Version vom 28. September 2024, 11:20 Uhr
Mediawiki Update - Software-Aktualisierung durchführen
Vorbereitung
- Mailingliste abonnieren
- Aktuelle Version ermitteln
- Download
https://www.mediawiki.org/wiki/Download
$ wget https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.1.tar.gz
Datensicherung
- Konfiguration ermitteln
$ grep '$wgDB' mediawiki/LocalSettings.php $wgDBserver = "wgDBserver"; $wgDBuser = "wgDBuser"; $wgDBname = "wgDBname"; $wgDBpassword = "wgDBpassword";
- Datenbank
$ mysqldump --user=$wgDBuser --password=$wgDBpassword $wgDBname > backup/$'wgDBname'_$(date -I).sql
- Dateisystem
$ tar -czf backup/wiki_$(date -I).tar.gz wiki/
Durchführung
$ export NewWikiVersion=mediawiki-1.42.1
Archiv entpacken
$ tar -xf $NewWikiVersion.tar.gz
Daten übertragen
$ cp -auv mediawiki/images/ $NewWikiVersion $ cp -auv mediawiki/skins/ $NewWikiVersion $ cp -auv mediawiki/extensions/ $NewWikiVersion $ cp -auv mediawiki/resources/assets/ $NewWikiVersion/resources/ $ cp -auv mediawiki/LocalSettings.php $NewWikiVersion/
Einstiegspunkt ändern
$ mv mediawiki mediawiki.old ; mv $NewWikiVersion mediawiki
Konfiguration anpassen
- Prüfen der Versionshinweise
- Änderungen prüfen
- Entfallene Variablen
- Keine Wirkung mehr
- Müssen ggf. angepasst werden
- Neue Variablen
- Müssen ggf. ergänzt werden
- Änderung des Variablen-Typs
- Datentyp einer Variable kann sich geändert haben
- Es wird versucht, vernünftige Standardwerte zu verwenden, und im Falle einer Typänderung abwärtskompatibel zu sein.
Update-Skript
- Abhängigkeiten auflösen
- Datenbank aktualisieren
$ php8.2 mediawiki/maintenance/update.php --force
- Aktualisierung per Webbrowser
Erweiterungen aktualisieren
- Bestimmte Erweiterungen wurden aktualisiert, um mit der neuen Version von MediaWiki zu funktionieren
- Stellen Sie sicher, dass Sie auf die neuesten Versionen dieser Erweiterungen aktualisieren
- Manuell aktualisieren
- Möglicherweise müssen Sie eigene Erweiterungen manuell aktualisieren
- Verschiedene tarballs enthalten einige Untergruppen von Erweiterungen und haben eine Versionierung, die Ihnen hilft, die richtige für Ihre MediaWiki-Kernversion zu wählen.
- Extension Distributor funktioniert gut für die meisten Leute, die einen Schnappschuss von Erweiterungen wollen, die mit ihren unterstützten Versionen von MediaWiki funktionieren werden.
- Wenn Sie viele Erweiterungen wollen, ist downloading from Git wahrscheinlich am besten.
- mwExtUpgrader
Ohne Git können Erweiterungen auch mit mwExtUpgrader aktualisiert werden
php8.2 mwExtUpgrader.phar
Note that this release of code is not stable. Do not use for production.
Welcome to use mwExtUpgrader. This script can help you bulk upgrade MediaWiki extensions.
Continue with this action? (y/n) y
Please type the absolute path to the MediaWiki directory: /var/www/wiki.foxtom.de/wiki/mediawiki
mwExtUpgrader detected your MediaWiki version is 1.42.1
Confirm version to be upgraded (default: 1.42)
[0] 1.39
[1] 1.40
[2] 1.41
[3] 1.42
> 3
PageOwnership unsupported REL1_42
DrawioEditor unsupported REL1_42
CodeEditor successfully upgraded
MultimediaViewer successfully upgraded
Renameuser successfully upgraded
Cite successfully upgraded
ConfirmAccount successfully upgraded
PageImages successfully upgraded
Gadgets successfully upgraded
SyntaxHighlight_GeSHi successfully upgraded to 2.0
MobileFrontend successfully upgraded to 2.4.1
RevisionSlider successfully upgraded
CategoryTree successfully upgraded
SecureLinkFixer successfully upgraded
Lockdown successfully upgraded
Poem successfully upgraded
Linter successfully upgraded
TitleBlacklist successfully upgraded to 1.5.0
NativeSvgHandler successfully upgraded to 1.5.0
Math successfully upgraded
Interwiki successfully upgraded to 3.2
ReplaceText successfully upgraded to 1.8
Echo successfully upgraded
OATHAuth successfully upgraded to 0.5.0
TocTree successfully upgraded to 1.12.0
DiscussionTools successfully upgraded to 0.0.0
LoginNotify successfully upgraded to 0.1
PdfHandler successfully upgraded
AbuseFilter successfully upgraded
CiteThisPage successfully upgraded
InputBox successfully upgraded to 0.3.0
ConfirmEdit successfully upgraded to 1.6.0
Scribunto successfully upgraded
WikiEditor successfully upgraded to 0.5.4
MsUpload successfully upgraded to 13.5
Thanks successfully upgraded to 1.2.0
ParserFunctions successfully upgraded to 1.6.1
UserMerge successfully upgraded to 1.10.2
VisualEditor successfully upgraded
TemplateData successfully upgraded to 0.1.2
Nuke successfully upgraded
SpamBlacklist successfully upgraded
ImageMap successfully upgraded
TextExtracts successfully upgraded
JSBreadCrumbs successfully upgraded to 1.1.1
MinervaNeue successfully upgraded
Timeless successfully upgraded to 0.9.1
Vector successfully upgraded to 1.0.0
MonoBook successfully upgraded
Anhang
Siehe auch
Dokumentation
Links
Projekt
Weblinks
- Greg Sabino Mullane's Blog post provides some more detail about point release upgrades.
- Project:Support desk if you need help or something went wrong
- Kategorie/MediaWiki deprecated or obsolete features
- Anleitung:Backup eines Wikis
- Manual:Restoring a wiki from backup
- Manual:Moving a wiki
- Manual:Restoring wiki code from cached HTML - wenn du kein erfolgreiches Backup hast
- Manual:Installing