Updating MediaWikiΒΆ

The MediaWiki-announce mailing list provides announcements for security updates and new releases. Emails from this list provide links to patches that make upgrading easy. The patches can also be found here. General instructions for upgrading can be found here.

The following provides an example of how to upgrade using a patch file:

wget -P ~ http://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.2.patch.gz
gunzip ~/mediawiki-1.27.2.patch.gz
patch -p1 -d /var/www/mediawiki < ~/mediawiki-1.27.2.patch
rm ~/mediawiki-1.27.2.patch
sudo chown -R www-data:www-data /var/www/mediawiki
sudo chmod -R ug+rw /var/www/mediawiki
sudo chmod ug=rw,o= /var/www/mediawiki/LocalSettings.php*
php /var/www/mediawiki/maintenance/update.php