.:UpdateMediaWiki:home

From ADPAA
Jump to navigation Jump to search
How to Update the MediaWiki Software

Procedure to update MediaWiki site on ADPAA sourceforge project

1) Backup Wiki database - https://mysql-a.sourceforge.net/index.php?route=/server/databases

   1. From SourceForge shell run: mysqldump -h mysql-LETTER --user=DATABASE_USER --opt -p DATABASE | gzip > DATABASE.`date +%Y-%m-%d`.sql.gz
  OR (Web-based sourceforge GUI version):
   1. Click on database (a244641_myapp)
   2. Go to ‘Export’ Tab
   3. ‘Quick’ option should be selected, Format = ‘SQL’
   4. Click ‘Export’ button
   5. Save a244641_myapp.sql on local computer

2) Upload new mediawiki tarball to Sourceforge

   1. Download new mediawiki tarball from mediawiki website
   2. sftp USERNAME@web.sourceforge.net
   3. cd /home/project-web/adpaa/htdocs/
   4. Upload mediawiki tarball to htdocs directory: put mediawiki-1.XX.Y.tar.gz
   5. exit

3) Install mediawiki tarball

   1. Log onto sourceforge servers via ssh: ssh -t USERNAME@shell.sourceforge.net create
   2. Unpack the tarball: tar -xvzf mediawiki-1.XX.Y.tar.gz
   3. Rename the new mediawiki directory – e.g. wiki_v2
   4. cd to new mediawiki directory: cd wiki_v2
   5. Grab the LocalSettings.php file from another install version: cp ../wiki/LocalSettings.php .
   6. Change path variable to match new mediawiki directory name.
   7. Check that skins listed in LocalSettings.php are available in current mediawiki version
   8. Run the update script: 
       1. Versions 1.39 and lower: php maintenance/update.php
       2. Versions 1.40 and higher: php maintenance/run.php update.php