TEHCC Wiki:Maintenance: Difference between revisions
Jump to navigation
Jump to search
m (→System Maintenance: grammar) |
(→System Maintenance: update to use php 5.6 from command line) |
||
Line 17: | Line 17: | ||
** Composer based (Semantics, others?) | ** 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 | **# Update composer <code>/usr/php/56/bin/php composer.phar self-update</code> | ||
**# Update using composer <code>php | **# Update using composer <code>/usr/php/56/bin/php composer.phar update</code> | ||
** Manual extensions - Go to [[Special:Version]] and compare what's shown on extension page | ** 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> | *** [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> | ||
Line 24: | Line 24: | ||
** Remaining extensions are part of MediaWiki and upgraded with it | ** Remaining extensions are part of MediaWiki and upgraded with it | ||
* Update completion - run maintenance routine from <code>cd ~/public_html/clubwiki/</code> directory: <code>php | * Update completion - run maintenance routine from <code>cd ~/public_html/clubwiki/</code> directory: <code>/usr/php/56/bin/php maintenance/update.php</code> | ||
==Site Maintenance== | ==Site Maintenance== |
Revision as of 10:39, 23 November 2016
Maintenance notes:
System Maintenance
- Update MediaWiki
- Patch - Available for point releases. Details on the MediaWiki site
- Download patch from the dumps site
- cd to
cd ~/public_html/clubwiki/
directory (the one with LocalSettings.php). - Download (wget) the patch file from the dumps site and gunzip it
gunzip mediawiki stable release number.patch.gz
. - Use
patch -p1 --dry-run
to check what will be changed (e.g.,patch -p1 --dry-run -i mediawiki stable release number.patch
) - If all is well, run patch again without
--dry-run
. - Check Special:Version and you should see the new version number in place.
- Delete patch files
rm mediawiki stable release number.patch*
- Patch - Available for point releases. Details on the MediaWiki site
- Upgrade - detailed later
- Update extensions
- Composer based (Semantics, others?)
- cd to
cd ~/public_html/clubwiki/
directory (the one with LocalSettings.php). - Update composer
/usr/php/56/bin/php composer.phar self-update
- Update using composer
/usr/php/56/bin/php composer.phar update
- cd to
- Manual extensions - Go to Special:Version and compare what's shown on extension page
- NumberFormat - Download needed updates and extract into the extension directory
tar -xzf extension.tar.gz -C public_html/clubwiki/extensions/
- Note: Special:Version currently shows v0.8.0, but site shows v0.8.1, updating doesn't increment.
- NumberFormat - Download needed updates and extract into the extension directory
- Remaining extensions are part of MediaWiki and upgraded with it
- Composer based (Semantics, others?)
- Update completion - run maintenance routine from
cd ~/public_html/clubwiki/
directory:/usr/php/56/bin/php maintenance/update.php
Site Maintenance
- Cleanup after a spam/vandalism battle
- cd to
cd ~/public_html/clubwiki/
directory (the one with LocalSettings.php) - Delete archived revisions (deleted page revisions)
php-cli maintenance/deleteArchivedRevisions.php
for dry run, then executephp-cli maintenance/deleteArchivedRevisions.php --delete
- Delete users older than 7 days with no edits
php-cli maintenance/removeUnusedAccounts.php --ignore-touched 7
for dry run, then executephp-cli maintenance/removeUnusedAccounts.php --ignore-touched 7 --delete
- cd to