Content
"Mediawiki" on https://aligot-death.space, available at https://aligot-death.space/wiki/mediawiki-en
Mediawiki
Tips and notes for mediawiki
Installation#
To do during ansible script creation
Update#
First, backup the database. The "set history +o" disables the shell history to avoid storing passwords:
set +o history sudo mysqldump --user=<user> --password=<password> <database> > /var/backup/<database>/<database>-`date +%d-%m-%y`.sql sudo mysqldump --user=<user> --password=<password> <database> --xml > /var/backup/<database>/<database>-`date +%d-%m-%y`.xml set -o history
Then download and extract the release:
cd /tmp wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz tar -xvzf mediawiki-1.35.1.tar.gz
Copy the existing data and settings into the new release:
sudo cp -r wiki/LocalSettings.php wiki_1.35/ sudo cp -r wiki/images/ wiki_1.35/ sudo cp -r wiki/extensions/* wiki_1.35/extensions/ sudo cp -r wiki/resources/assets/logo.png wiki_1.35/resources/assets/ sudo cp -r wiki/skins/* wiki_1.35/skins/
Then switch directory
mv wiki wiki_old && mv wiki_1.35 wiki
finally:
cd maintenance/ sudo php update.php