MediaWiki: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
Die Seite wurde neu angelegt: „=Upgrading MediaWiki= 1. Download and install new version in new folder <syntaxhighlight>cd /var/lib wget https://releases.wikimedia.org/mediawiki/1.32/mediaw…“
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
=Upgrading MediaWiki=
=Upgrading MediaWiki=


1. Download and install new version in new folder
1. Download and install new version in new directory
<syntaxhighlight>cd /var/lib
<syntaxhighlight>cd /var/lib
wget https://releases.wikimedia.org/mediawiki/1.32/mediawiki-1.32.0.tar.gz
wget https://releases.wikimedia.org/mediawiki/1.32/mediawiki-1.32.0.tar.gz
Zeile 7: Zeile 7:
rm mediawiki-1.32.0.tar.gz</syntaxhighlight>
rm mediawiki-1.32.0.tar.gz</syntaxhighlight>


2. Copy configuration file and images to new directory
<syntaxhighlight>cp -r --preserve=all ./mediawiki/LocalSettings.php ./mediawiki-1.32.0
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/images/ ./mediawiki-1.32.0/images</syntaxhighlight>


2. Create new directory
3. Copy some extensions and skins to new directory
<syntaxhighlight>mkdir /usr/share/phpmyadmin</syntaxhighlight>
<syntaxhighlight>rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/extensions/VisualEditor/ ./mediawiki-1.32.0/extensions/VisualEditor
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/skins/CologneBlue/ ./mediawiki-1.32.0/skins/CologneBlue
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/skins/Modern/ ./mediawiki-1.32.0/skins/Modern</syntaxhighlight>


3. Download and extract phpMyAdmin archive
4. Rename the old installation directory and then rename the new one to match the old name
<syntaxhighlight>wget -qO- https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz | tar -xzvf - -C /usr/share/phpmyadmin --strip-components=1</syntaxhighlight>
<syntaxhighlight>mv mediawiki mediawiki-1.31.0
mv mediawiki-1.32.0 mediawiki</syntaxhighlight>


4. Create directory for temporary files used by phpMyAdmin
5. Run update script for database scheme
<syntaxhighlight>mkdir /usr/share/phpmyadmin/tmp && chown www-data:www-data /usr/share/phpmyadmin/tmp</syntaxhighlight>
<syntaxhighlight>cd mediawiki/maintenance
php update.php</syntaxhighlight>


5. Copy original config file to new directory
6. Restart Apache Webserver
<syntaxhighlight>cp -r --preserve=all /usr/share/phpmyadmin-old/config.inc.php /usr/share/phpmyadmin</syntaxhighlight>
<syntaxhighlight>systemctl restart apache2
 
</syntaxhighlight>
6. Remove directory containing the old version
<syntaxhighlight>rm -rf /usr/share/phpmyadmin-old</syntaxhighlight>

Version vom 6. April 2019, 19:49 Uhr

Upgrading MediaWiki

1. Download and install new version in new directory

cd /var/lib
wget https://releases.wikimedia.org/mediawiki/1.32/mediawiki-1.32.0.tar.gz
tar -xvzf mediawiki-1.32.0.tar.gz
rm mediawiki-1.32.0.tar.gz

2. Copy configuration file and images to new directory

cp -r --preserve=all ./mediawiki/LocalSettings.php ./mediawiki-1.32.0
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/images/ ./mediawiki-1.32.0/images

3. Copy some extensions and skins to new directory

rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/extensions/VisualEditor/ ./mediawiki-1.32.0/extensions/VisualEditor
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/skins/CologneBlue/ ./mediawiki-1.32.0/skins/CologneBlue
rsync -axHAWXS --numeric-ids --info=progress2 ./mediawiki/skins/Modern/ ./mediawiki-1.32.0/skins/Modern

4. Rename the old installation directory and then rename the new one to match the old name

mv mediawiki mediawiki-1.31.0
mv mediawiki-1.32.0 mediawiki

5. Run update script for database scheme

cd mediawiki/maintenance
php update.php

6. Restart Apache Webserver

systemctl restart apache2