MediaWiki/Upgrading
From DreamHost
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.

