Upgrading Mediawiki: Difference between revisions

From Pumping Station One
just did an upgrade, figured I would document it
 
Wikibot (talk | contribs)
m Robot: Cosmetic changes
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Howto Upgrade the wiki ==
These are the steps I used. Replace version numbers where appropriate.


     ssh hef@wiki.ad.pumpingstationone.org
     ssh hef@wiki.ad.pumpingstationone.org
Line 13: Line 16:
     sudo systemctl restart php-fpm
     sudo systemctl restart php-fpm
      
      
Go to https://wiki.pumpingstaitonone.org and make sure everything looks ok.
Go to https://wiki.pumpingstationone.org and make sure everything looks ok.
 
== Structure of mediawiki folders ==
 
* in the web root, there are a number of mediawiki versions. For non-major updates (1.22.x to 1.23.x) the databases are generally compatable. So if an update goes wrong, change the mediawiki symlink back to the older version.
* 3rd party extensions are not stored in mediawiki/extensions like the docs suggest, but instead as a neighbor to the mediawiki folder.
* LocalSettings.php is also a neighbor, and is symlinked into each mediawiki folder.
* Any item in the cache folder is considered expired if it is older than the modified time of the LocalSettings.php file. <code>sudo touch LocalSettings.php<code> to expire the cache.