Updating Mediawiki Installation: Difference between revisions

Updates for upgrading mediawiki
 
(3 intermediate revisions by the same user not shown)
Line 53: Line 53:


Once you are done with the upgrade, look at, say, [[Recipe: python program reads cubed-sphere data]] and make sure the highlighting is there!
Once you are done with the upgrade, look at, say, [[Recipe: python program reads cubed-sphere data]] and make sure the highlighting is there!
== Update MIME Types ==
Mediawiki's MIME tables need updating to allow .mm files as an XML file extension. To do this edit:
includes/libs/mime/mime.types
and change:
application/xml xml xsl xsd kml
to
application/xml xml xsl xsd kml mm
== Update the Database ==
=== Rename the wiki directory ===
First, you move away the old wiki directory and make the new install <tt>wiki/</tt>
=== Set repo to read only ===
Edit LocalSettings.php and uncomment the last line to set in read-only mode:
# -------------------
# Added by M Thompson
# This puts the wiki into readonly mode
# -------------------
$wgReadOnly = 'Maintenance is underway. Website is on read-only mode';
=== Run update script ===
$ /usr/local/php56/bin/php maintenance/update.php
=== ISSUES ===
It turns out [https://www.mediawiki.org/wiki/Topic:Tv1swbwrwjpakgmk due to a bug in Mediawiki], you cannot run update.php if the site is in readonly mode. This is scary. It could mean inconsistent DB for any users on the wiki at that time.