[dokuwiki] wiki farms

On Tue, Jun 21, 2005 at 12:31:22PM +0600, RM wrote:

> This is called "wiki farms". I guess that some ideas (if not code),
> can be borrowed from those who already did this:
> http://www.pmwiki.org/wiki/PmWiki/WikiFarms

Thanks for that link! It provides just the right terminology.

About adapting DokuWiki for such a setup, I would like to propose a
series of small changes ... most important is to split up doku.php
into multiple files as follows:

<?php
// local settings that modify the behaviour of conf/dokuwiki.php
// minimum change in local_config is to redefine $conf['storage']
// in order to specify a separate storage area. If you don't want
// a local_config, define that path right here.

// $conf['storage'] = something deployment specific
// $conf['local_config'] = something deployment specific

$conf['storage'] = 'data'; // prepended to media, attic, etc

include ('init.php');

// local settings that over-ride the behaviour of conf/dokuwiki.php
// over-ride happens _after_ the defaults are loaded

include ('run.php');
?>

Every "WikiField" or instance is created by copying this file and
over-riding variables where necessary. I already have multiple wiki's
like this, but it's all based on a very old release, and I found it
difficult to track down the changes I had made. Would like to do this
one step at a time if people are interested. There are small issues to
resolve such as URL rewriting, cookies etc. Anyone interested? I could
send in a patch with such a split up doku.php ...

Sameer.
-- 
Research Scholar, KReSIT, IIT Bombay
http://www.it.iitb.ac.in/~sameerds/
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: