Upgrading Mediawiki

From Littledamien Wiki
Revision as of 18:06, 7 December 2020 by Video8 (talk | contribs) (Created page with "In the following instructions, `eb_deploy` refers to the shell script found in the `littled_wiki` project root. * Download new wiki distribution to `littled_wiki` project roo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In the following instructions, eb_deploy refers to the shell script found in the littled_wiki project root.

  • Download new wiki distribution to littled_wiki project root.
  • Edit eb_deploy.
    • Change WIKI_DISTRO_DIR to point to the directory containing the new wiki distribution.
  • Make backup of previous wiki configuration
    • Backup the current wiki database.
    • Make sure to save a copy of the current LocalSettings.php for the wiki to migrate any custom settings to the new wiki distribution.
  • Run eb_deploy.
  • Connect to the wiki on the live server.
    • Go through the installation steps to create LocalSettings.php.
    • Download the newly created LocalSettings.php from the server to [littled_wiki_PROJECT_ROOT]/wiki_config/
  • Migrate settings from previous LocalSettings.php to the new file.
    • Database settings, e.g. $wgDBServer = getenv('MEDIAWIKI_DB_SERVER');
    • Do not store any sensitive information in the configuration file.
    • Custom extensions which would be found at the very end of the file.