MediaWiki Upgrade

From Julian Yap

Steps

  • Backup old directory
  • chmod -w config
  • cp LocalSettings.php
  • cp skins/common/images/wiki.png
  • Copy MonoBookNoViews theme
    • cp skins/MonoBookNoViews.php
    • cp skins/monobooknoviews directory
  • Edit LocalSettings.php to point to new directory.
  • Edit /.htaccess to point to new directory.
  • cp -r images directory
    • NOTE: Individual pages need to be purged for images to appear.
      • This can be accomplished globally with $wgCacheEpoch variable which can be set in LocalSettings.php to invalidate all prior cache entries (see DefaultSettings.php).
$wgCacheEpoch = '20030516000000';
      • Or purge all pages in the parser cache, truncate objectcache table from the wiki database. You may use this command:
TRUNCATE TABLE objectcache;

Credits

How do I purge cached pages?