TEHCC Wiki:Maintenance: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
Line 22: Line 22:
*** [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>
***; Note<nowiki>:</nowiki> [[Special:Version]] currently shows v0.8.0, but site shows v0.8.1, updating doesn't increment.
***; 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
** 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-cli maintenance/update.php</code>
* Update completion - run maintenance routine from <code>cd ~/public_html/clubwiki/</code> directory: <code>php-cli maintenance/update.php</code>

Revision as of 10:12, 3 October 2015

Maintenance notes:

System Maintenance

  • Update MediaWiki
    • Patch - Available for point releases. Details on the MediaWiki site
      1. Download patch from the dumps site
      2. cd to cd ~/public_html/clubwiki/ directory (the one with LocalSettings.php).
      3. Download (wget) the patch file from the dumps site and gunzip it gunzip mediawiki stable release number.patch.gz.
      4. Use patch -p1 --dry-run to check what will be changed (e.g., patch -p1 --dry-run -i mediawiki stable release number.patch)
      5. If all is well, run patch again without --dry-run.
      6. Check Special:Version and you should see the new version number in place.
      7. Delete patch files rm mediawiki stable release number.patch*
  • Upgrade - detailed later
  • Update extensions
    • Composer based (Semantics, others?)
      1. cd to cd ~/public_html/clubwiki/ directory (the one with LocalSettings.php).
      2. Update composer php-cli composer.phar self-update
      3. Update using composer php-cli composer.phar update
    • 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.
    • Remaining extensions are part of MediaWiki and upgraded with it
  • Update completion - run maintenance routine from cd ~/public_html/clubwiki/ directory: php-cli maintenance/update.php

Site Maintenance

  • Cleanup after a spam/vandalism battle
    1. cd to cd ~/public_html/clubwiki/ directory (the one with LocalSettings.php)
    2. Delete archived revisions (deleted page revisions) php-cli maintenance/deleteArchivedRevisions.php for dry run, then execute php-cli maintenance/deleteArchivedRevisions.php --delete
    3. Delete users older than 7 days with no edits php-cli maintenance/removeUnusedAccounts.php --ignore-touched 7 for dry run, then execute php-cli maintenance/removeUnusedAccounts.php --ignore-touched 7 --delete