Wiki Upgrade

From mywiki
Jump to navigation Jump to search


EditDate 2022/05/30

Related Threads:

Periodically the wiki needs to be upgraded and there is so much content on it now I cannot afford to start from scratch.

Plan is to plan and document simplest upgrade process here with links and tools and then use this to trigger upgrades in the future.Web References https://johnnywunder.info/mywiki/index.php/Wiki Upgrade

Install Mediawiki Infrastructure one command line entry sudo apt-get install apache2 mariadb-server php php-mysql libapache2-mod-php php-xml php-mbstring

  1. Copy Production Wiki to New location and start running from there.
    1. Terminate upgrades...Turn off EmailToWiki. Turnoff cron
    2. Cleanup Database
    3. Copy database prefacing with current year.
      1. Use mysqldump -u root -p mywikiYEAR > dump.sql for backup
      2. And mysql -u root -p mywikiYEAR < dump.sql for restore
    4. Under YEAR directory Copy folder prefacing with past year.
    5. Point Apache to mywiki instance on old year with current database
    6. Validate access for read.
      1. Set images directory to www-data:www-data and tmp to www-data:adm
    7. Rename mywiki folder to test for upgrade and bring up.
  2. Upgrade actual Production wiki as test validating steps and access
    1. Composer, MediaWiki, Semantic MediaWiki and PH are a tough row. Do them without all the extensions as simple as possible.
      1. Upgrade MediaWiki
      2. Upgrade Semantic MediaWiki
      3. Once working copy LocalSettings.php
    2. Correct errors arising
      1. Still struggling with composer but have running version.
      2. Edit of this page with page form through unicode exception. Upgrade page forms to 4.3 with composer and testing edit with this edit.
    3. Shutdown Apache
  3. Rename test to mywiki in apache
  4. Run for a few weeks.
  5. Move old directories and databases to archive