Wiki upgrade
From OpenOffice.org Wiki
The install directory for the Wiki is
/space/mwiki
To do a database import on the Wiki:
/usr/sfw/bin/mysql -u $WIKIUSER_ID -p $WIKI_DB < backup.sql
To copy in and untar the images (from backup or from an old Wiki):
tar -xvf /tmp/wikiimages.tar /space/mwiki/images
Documented method for updating a wiki
- Edit /opt/coolstack/php5/lib/php.ini and add a line that says safe_mode = Off
(php5 defaults to On. If safe_mode is On, then the update script will error out) - Bounce the apache server if the php.ini file had to be changed.
- Copy AdminSettings.sample to AdminSettings.php. Add database admin user and database admin password in this file.
- To upgrade the old data to fit into the new table structure run /opt/coolstack/php5/bin/php /space/mwiki/maintenance/update.php
- Refresh the intrawiki links with /opt/coolstack/php5/bin/php /space/mwiki/maintenance/refreshlinks.php
- Remove AdminSettings.php
Alternative method that had to be used on OOo Wiki
Alternative to running update and refreshlinks is to just rerun the Wiki setup. Rename LocalSettings.php in the wiki root and in mwiki/config. Open the OOoWiki main page in a browser and follow the prompts.

