Wiki upgrade

From OpenOffice.org Wiki

Jump to: navigation, search
PAGE_TITLE: V2lraSB1cGdyYWRl

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

  1. 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)
  2. Bounce the apache server if the php.ini file had to be changed.
  3. Copy AdminSettings.sample to AdminSettings.php. Add database admin user and database admin password in this file.
  4. To upgrade the old data to fit into the new table structure run /opt/coolstack/php5/bin/php /space/mwiki/maintenance/update.php
  5. Refresh the intrawiki links with /opt/coolstack/php5/bin/php /space/mwiki/maintenance/refreshlinks.php
  6. 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.

Personal tools
Create a book