Updating the MediaWiki software

From techdocs
Revision as of 16:36, 7 July 2022 by Plinich (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

As root, download the latest version of the MediaWiki software from https://www.mediawiki.org into /root/downloads (possibly by using wget). Then:

# cd /usr/local
# tar zxf /root/downloads/mediawiki-<version>.tar.gz
# cd mediawiki-<version>
# rsync -va ../mediawiki/LocalSettings.php .
# systemctl stop apache2
# cd ..
# rm mediawiki
# ln -s mediawiki-<version> mediawiki
# cd mediawiki/maintenance
# php update.php
# systemctl start apache2