Difference between revisions of "Help:Upgrading MediaWiki"

From USAFA Rugby Alumni
Jump to: navigation, search
 
Line 1: Line 1:
 
Notes for upgrading MediaWiki on shared server at InMotion.
 
Notes for upgrading MediaWiki on shared server at InMotion.
 +
 +
=Upgrade Steps=
  
 
Assuming new version of MediaWiki has been uploaded into a directory on shared server
 
Assuming new version of MediaWiki has been uploaded into a directory on shared server
Line 11: Line 13:
 
## 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.
 
## 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.
  
 
+
=Command Line Notes=
  
 
Notes:
 
Notes:
 
* list only directories '''''ls -d */'''''
 
* list only directories '''''ls -d */'''''
 +
** https://www.cyberciti.biz/faq/linux-list-just-directories-or-directory-names/
 
* list only files '''''ls | grep -v '^d''''''
 
* list only files '''''ls | grep -v '^d''''''
 +
** https://www.cyberciti.biz/faq/linux-list-just-directories-or-directory-names/
 
* compare directories with exclusions and file names only '''''diff -rq --exclude <dirname> <first dir> <second dir>'''''
 
* compare directories with exclusions and file names only '''''diff -rq --exclude <dirname> <first dir> <second dir>'''''
 +
** https://superuser.com/questions/548431/diff-directories-excluding-one-folder-inside
 +
* copy recursively from one directory to another and preserver attributes '''''cp avr'''''
 +
** used for final copy from new MediaWiki instance to current directory
 +
** https://www.cyberciti.biz/faq/copy-folder-linux-command-line/
 +
 +
 +
<headertabs />

Latest revision as of 21:46, 26 March 2017

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: