MediaWiki Maintenance

From Hackers & Designers
Revision as of 12:53, 2 March 2023 by Fincato (talk | contribs)
MainNavigation No

Upgrading MediaWiki, as it is in general installing it and using it (eg their APIs), is quite annoying. It definitely could be simplified in the process by writing like a Python script (well commented), but so far as I'd used not to upgrade this software so often, it's all manual labour.

The process can be divided in three steps:

  • backup the MySQL db and other parts of the system
  • download the newest version of the software, unpacking it, move it to /var/www/
  • make backup copy of current MediaWiki folder in /var/www/ and copy to the newer version all plugins from current / previous version

General, official, reference document for upgrading the wiki software.

Backup

Before starting the backup process (SQL dump), clear any "pending jobs" from the db:

Use runJobs.php to run all pending jobs and clear the queue before performing the upgrade.