[dokuwiki] Re: patch to configure location of acl.auth.php

TNHarris wrote:
> On Thu, 05 Jul 2007 19:10:34 +0200, "Simon Heimlicher"
> <heimlicher@xxxxxxxxxxxxxx> said:
>   
>> I have a setup where I only use one dokuwiki directory and many data 
>> directories ("wiki farm"), and for this setup I had to replace all 
>> occurrences of DOKU_CONF.'acl.auth.php' with $conf['aclfile'].
>>     
>
> I'm doing something similar. The solution I came up with uses a hosts
> configuration file to set the DOKU_CONF and DOKU_URL constants. This
> required modifying inc/init.php to read the hosts.conf early. I also had
> to define DOKU_DIR as an alternative to DOKU_INC because the sitemaps
> were being written to the wrong place.
>
> Diff patch is attached. The configuration looks like this:
> # hosts.conf.php
> # <?php exit()?>
> # DokuWiki hosts configuration file
> # Defines URIs for wikis and the directories they live in
> # URI pattern <sp> Canonical URI <sp> Base directory
> # Pattern can contain subpatterns that will be replaced in the URI and
> base dir.
> ^(www.)?whoopdedo.org/doku/     http://whoopdedo.org/doku/     
> /path/to/doku/
> ^(www.)?whoopdedo.org/moe/     http://whoopdedo.org/moe/     
> /path/to/moe/
> -- tom
> telliamed@xxxxxxxxxxx
>   
I run a couple of these 'farms' (isn't it more like the opposite of a
server farm.) After a short while, I suffered similar problems. The
solution I use is to rsync the shared files and directories (yes -- even
though they are on the same filesystem.)

The downsides are:
1. space, which is really not an issue nowdays.
2. irrespective of how you cron it, the servant wikis will always lag
slightly.
3. a slight load on the server. But rsync is very efficient.

(2) and (3) are tradeoffs.

The upside is:
1. you don't touch any code in dokuwiki or its plugins.

Benjamin Franklin would probably choose differently. :)

Luke.
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: