Methoden/WikiUpdate, MediaWiki - Full Service! Firmen-Wikis Content Management Systeme Projektmanagement Tools Sicherheit
Aus Sysdoc
3.4 Update einer MediaWiki-Installation
Ein Update/Upgrade der MediaWiki-Software kann in unterschiedlichen Varianten vollzogen werden. In der Vergangenheit wurde hier für die X die Methode "Alternative 2: Re-run the installer" gewählt:
- Rename LocalSettings.php to LocalSettings.old.php
- Make the config directory writable by the web server
- Make sure the database user has full rights to the database
- Browse to the wiki and start the installer
- Fill in the form fields with the same values as was done during the previous version's installation.
- When the installation process starts, the script will detect existing MediaWiki tables, and upgrade their schema.
- When this is complete, a new LocalSettings.php will be generated.
- Delete the new configuration file (LocalSettings.php)
- Rename LocalSettings.old.php back to LocalSettings.php
- Restore permissions on the config directory
Hierbei ist zu beachten, dass die Datenbank des jeweiligen Wikis die richtigen Zuordnungen auf Unix-Ebene in Bezug auf Besitzer und Gruppe hat, da sonst im Zuge des Updates die DB-Table-Struktur nicht angepasst werden kann.
Nutzer und Gruppe rekursiv von ggf. root, rootgroup auf mysql, mysqlgroup umstellen (Unix Shell):
cd /var/lib/mysql chown -R mysql.mysql /wikidbXY
