Old:Moving MediaWiki to 4.0-Mona: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
m (BobS moved page Moving MediaWiki to 4.0-Mona to Old:Moving MediaWiki to 4.0-Mona without leaving a redirect)
(Moved contents to Old:)
 
Line 70: Line 70:
'''Related'''
'''Related'''


[[Installing MediaWiki on 4.0-Mona | Installing MediaWiki on 4.0-Mona]]
[[Old:Installing MediaWiki on 4.0-Mona | Installing MediaWiki on 4.0-Mona]]


[[Mini Servers: Ready To Go#Mini Server 15 - MediaWiki 1.12.0 | Mini Servers: Ready To Go]]
[[Mini Servers: Ready To Go#Mini Server 15 - MediaWiki 1.12.0 | Mini Servers: Ready To Go]]
Line 79: Line 79:


[[Category: Uniform Server 4.0-Mona]]
[[Category: Uniform Server 4.0-Mona]]
[[Category: Installation]]

Latest revision as of 21:54, 21 June 2013

Moving and upgrading MediaWiki 4.0-Mona

Introduction

Moving and upgrading MediaWiki on Uniform Server.

The following describes how to move and upgrade MediaWiki from Uniform Server 3.5 Apollo to 4.0-Mona.

Original Configuration:

  • Server: Uniform Server 3.5 Apollo
  • MediaWiki: mediawiki-1.13.1
  • Server folder: www\wiki
  • Server database: \Uniform Server\udrive\usr\local\mysql\data\wikidb


New Configuration:

  • Server: Uniform Server 4.0-Mona
  • MediaWiki: mediawiki-1.13.3

Top

Preparation

Copy the server Wiki folder www\wiki to new server Copy the database folder \Uniform Server\udrive\usr\local\mysql\data\wikidb to new server.

This effectively mirrors what already exists.

Top

New MediaWiki

Downloaded new version of MediaWiki unpacked it. Copy all files to new server and allow overwrite of any existing files.

Top

Admin Settings

Locate the file AdminSettings.sample found in folder www\wiki make a copy and rename it AdminSettings.php

Edit file and change these two lines as shown. (If you have changed the password make sure you use that)

$wgDBadminuser      = 'root';
$wgDBadminpassword  = 'root';   

Top

Run update.php!

The upgrade guide informs you to run update.php from a command prompt. This will fail because Uniform Server adds nothing to your PC hence the PHP executable is not on any system path. The solution is to create a batch file and run the command from the PHP root.

Create the following batch file name it wiki_update.bat and save to folder \UniServer\udrive\usr\local\php The batch file runs update.php in CLI mode.

php.exe \www\wiki\maintenance\update.php
pause 

Note: If you have named your wiki folder something else just substitute it in the above.

Top

Run update

Start the new servers, from the virtual drive created (normally drive Z) navigate to wiki_update.bat double click to run, be prepared for a long wait however if your Wiki database is small it is fairly quick.

Top

General note

The above applies to minor version updates for major version upgrades please read any notes supplied with that version.

Top

Conclusion

Minor updates are really that easy. If upgrading on an existing server; make sure to back-up.

The batch file wiki_update.php and AdminSettings.php need creating in either case.

Related

Installing MediaWiki on 4.0-Mona

Mini Servers: Ready To Go

Top