MediaWiki/Upgrading
Contents |
Upgrading
Firstly, current versions of Mediawiki require PHP5. If you've been running PHP4 on your domain, switch to PHP5 by going to the Manage Domains page of panel.dreamhost.com and clicking on the Edit button under the Web Hosting column for your domain.
- If you haven't done so yet, upgrade Mediawiki using the Goodies > One-Click Installs.
- In order to refresh/update your your database tables, you will need to run two update scripts. Here's what you need to do:
<? $wgDBadminuser = $wgDBuser; $wgDBadminpassword = $wgDBpassword;
- Press Ctrl-o to save the file, and Ctrl-x to exit the editor.
- In all cases, you will need to update the database tables. Type the following commands into your shell:
-
cd maintenance/ -
/usr/local/php5/bin/php update.php("Deleting old default messages" may take 5-10 minutes, depending on the size of your database) -
/usr/local/php5/bin/php refreshLinks.php(only really required for updating from 1.5.x)
-
And you're in business.
Error messages
Failure to run the update.php script may result in a number of errors, including "Table 'your_wiki.tag_summary' does not exist" (particularly when viewing history pages on recent MediaWiki 1.15 upgrades). Follow the instructions above to update your wiki's database.
Fatal Error message
I upgraded MediaWiki to v1.19.2 and followed the directions on this page. I received this error message when attempting to access wiki site:
Fatal error: Cannot redeclare wfProfileIn() (previously declared in /home/userName/hostedDomain.com/wiki/includes/profiler/Profiler.php) in /home/userName/hostedDomain.com/wiki/includes/ProfilerStub.php
To fix go to your MediaWiki root directory and remove StartProfiler.php file. I could then access wiki site without issue.
Note There is a StartProfiler.sample file so if you need that file for your install you can use the sample which should be compatible with your current version.
Version 1.16
In Version 1.16 the requirement to make an AdminSettings file is removed, see RELEASE NOTES.