Updating the MediaWiki software

From techdocs
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