Help:Upgrading MediaWiki

From USAFA Rugby Alumni
Revision as of 21:46, 26 March 2017 by Twhayes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Notes for upgrading MediaWiki on shared server at InMotion.

[edit]

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: