Editing TEHCC Wiki:Maintenance
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Maintenance notes: | |||
==System Maintenance== | ==System Maintenance== | ||
* Update MediaWiki | |||
** Patch - Available for point releases. Details on the [https://www.mediawiki.org/wiki/Manual:Upgrading#Using_patch MediaWiki site] | |||
**# Download patch from the [http://dumps.wikimedia.org/mediawiki/ dumps site] | |||
**# <kbd>cd</kbd> to <code>cd ~/public_html/clubwiki/</code> directory (the one with LocalSettings.php). | |||
**# Download (<kbd>wget</kbd>) the patch file from the [http://dumps.wikimedia.org/mediawiki/ dumps site] and <kbd>gunzip</kbd> it <code>tar -xzf ''mediawiki stable release number.patch''.gz</code>. | |||
**# Use <code>patch -p1 --dry-run</code> to check what will be changed (''e.g.'', <code>patch -p1 --dry-run -i ''mediawiki stable release number.patch''</code>) | |||
**# If all is well, run <kbd>patch</kbd> again without <code>--dry-run</code>. | |||
**# Check [[Special:Version]] and you should see the new version number in place. | |||
**# Delete patch files <code>rm ''mediawiki stable release number.patch''*</code> | |||
* Upgrade - detailed later | |||
* Update extensions | |||
** Composer based (Semantics, others?) | |||
**# <kbd>cd</kbd> to <code>cd ~/public_html/clubwiki/</code> directory (the one with LocalSettings.php). | |||
# <kbd>cd</kbd> to <code>cd ~/public_html/clubwiki/</code> directory (the one with LocalSettings.php). | **# Update composer <code>php-cli composer.phar self-update</code> | ||
# | **# Update using composer <code>php-cli composer.phar update</code> | ||
# | ** Manual extensions - Go to [[Special:Version]] and compare what's shown on extension page | ||
*** [https://www.mediawiki.org/wiki/Extension:NumberFormat NumberFormat] - Download needed updates and extract into the extension directory <code>tar -xzf extension.tar.gz -C public_html/clubwiki/extensions/</code> | |||
***; Note<nowiki>:</nowiki> [[Special:Version]] currently shows v0.8.0, but site shows v0.8.1, updating doesn't increment. | |||
** Remaining extensions are part if MediaWiki and upgraded with it | |||
* Update completion - run maintenance routine from <code>cd ~/public_html/clubwiki/</code> directory: <code>php-cli maintenance/update.php</code> | |||
==Site Maintenance== | ==Site Maintenance== | ||
Cleanup after a spam/vandalism battle | * Cleanup after a spam/vandalism battle | ||
# <kbd>cd</kbd> to <code>cd ~/public_html/clubwiki/</code> directory (the one with LocalSettings.php) | *# <kbd>cd</kbd> to <code>cd ~/public_html/clubwiki/</code> directory (the one with LocalSettings.php) | ||
# Delete archived revisions (deleted page revisions) <code> | *# Delete archived revisions (deleted page revisions) <code>php-cli maintenance/deleteArchivedRevisions.php</code> for dry run, then execute <code>php-cli maintenance/deleteArchivedRevisions.php --delete</code> | ||
# Delete users older than 7 days with no edits <code> | *# Delete users older than 7 days with no edits <code>php-cli maintenance/removeUnusedAccounts.php --ignore-touched 7</code> for dry run, then execute <code>php-cli maintenance/removeUnusedAccounts.php --ignore-touched 7 --delete</code> |