MediaWiki
Zur Navigation springen
Zur Suche springen
Upgrading MediaWiki
1. Download and install new version in new directory
export VERSION_SHORT=1.32
export VERSION_LONG=1.32.0
export VERSION_OLD=1.31.0
cd /var/lib
wget https://releases.wikimedia.org/mediawiki/"${VERSION_SHORT}"/mediawiki-"${VERSION_LONG}".tar.gz
tar -xvzf mediawiki-"${VERSION_LONG}".tar.gz
rm mediawiki-"${VERSION_LONG}".tar.gz
2. Copy configuration file and images to new directory
cp -r --preserve=all ./mediawiki/LocalSettings.php ./mediawiki-"${VERSION_LONG}"
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/images/ ./mediawiki-"${VERSION_LONG}"/images
3. Rename the old installation directory and then rename the new one to match the old name
mv mediawiki mediawiki-"${VERSION_OLD}"
mv mediawiki-"${VERSION_LONG}" mediawiki
4. Run update script for database scheme
cd mediawiki/maintenance
php update.php
5. Restart Apache Webserver
systemctl restart apache2