Help:Upgrading MediaWiki

From USAFA Rugby Alumni
Revision as of 19:27, 26 March 2017 by 71.178.247.57 (talk)
Jump to: navigation, search

Notes for upgrading MediaWiki on shared server at InMotion.

Assuming new version of MediaWiki has been uploaded into a directory on shared server

  1. Backup database using PhpMyAdmin on InMotion's cPanel. Backup will be downloaded to local machine from which upgrade is being performed.
  2. Backup current version of MediaWiki on shared server.
    1. SSH into shared server and execute follow command from root directory of MediaWiki instance - cp -r * <path to backup directory>
    2. After backing up, check to insure all files were copied - diff -rq <root of current MediaWiki> <path to backup directory>
  3. Stop access to current version by executing following command from root directory of current MediaWiki instance - mv LocalSettings.php LocalSettings.php.old
    1. Check LocalSettings.php in the new instance to make sure that all data is accurate to allow it to run on the shared server. See below for full listing of LocalSettings.php that will need to conform
    2. Point browser to new version - http://usafarugbyalumni.com/<path to new instance> and run basic tests to confirm all is ok and pages on new instance match pages on current instance.


Notes:

  • list only directories ls -d */
  • list only files ls | grep -v '^d'
  • compare directories with exclusions and file names only diff -rq --exclude <dirname> <first dir> <second dir>