[Pmwiki-users] one installation, multiple wikis

Crisses crisses
Mon Mar 22 08:16:25 CST 2004


> If you look at
> http://wiki.cyg.net.nz/

I'm sure there's other ways to do this than to have to patch it; if it 
became a permanent part of pmwiki.  Something like:

if (($WIKI_IS_FARM) && file_exists('local/scripts/wikifarm-init.php')) {
      include('local/scripts/wikifarm-init.php');
      $PathInfo = $HTTP_SERVER_VARS['PATH_INFO'];
  if ($pagename=='' && $EnablePathInfo)
   $pagename = @substr($PathInfo,1);
} else {
  if ($pagename=='' && $EnablePathInfo)
   $pagename = @substr($HTTP_SERVER_VARS['PATH_INFO'],1);
}

Forgive my php if I got some type of syntax/punctuation wrong but this 
looks like it might eliminate the need for a patch and there'd just be 
one variable $WIKI_IS_FARM = 1; to set in the farm config.  Then 
wikifarm-init.php becomes a standard script in all pmwiki 
installations.

> there is a working prototype of the wiki farm idea, as described on:
> http://www.pmichaud.com/wiki/Development/WikiFarm

Interesting.  I don't like setting the variables on the farm...I'm not 
sure I like having a "farm" installation of the wiki: I was thinking 
all browser-accessible wikis would be fields.  Hrm.

> You set up a new field by adding it to the Main.FieldList page in the
> 'home' field. The farm script uses this to set up a ring of fields,
> with pointers to the next and previous field.

I'm thinking that this is OK if it works in a directory where .htaccess 
only allows localhost to access the "farm"/config wiki :P

> There are no changes required to pmwiki.php -- it's a pure local
> customisation.

What about that patch mentioned on the site?

> It supports per-field configuration through a $field.config.php
> file.

Saw that...

> But it's a work in progress -- we are trying to make it as simple as
> possible (but no simpler).

Definitely.

Crisses
----
Macbeth:  For mine own good,?
All causes shall give way: I am in blood
Stepp'd in so far that, should I wade no more,
Returning were as tedious as go o'er:
Strange things I have in head, that will to hand;
Which must be acted ere they may be scann'd.
Lady Macbeth: You lack the season of all natures, sleep.
Macbeth: Come, we'll to sleep. My strange and self-abuse?
Is the initiate fear that wants hard use: ?
We are yet but young in deed.
   -- Shakespeare, Macbeth




More information about the pmwiki-users mailing list