Thankyou very much for this. Currently I don't have a farm, its a good idea.<div>I tried a long time ago.</div><div>I'll try again soon.</div><div><br></div><div>Simon</div><div><br></div><div>PS actually the reason for doing this is to share pages in some groups between my external site (kiwiwiki) and my internal intranet)</div>
<div><br></div><div><br><br><div class="gmail_quote">2009/11/27 Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Friday 27 November 2009 08:59:01 Simon wrote:<br>
> Problem solved,<br>
> I have to make the path more relative, so to speak.<br>
> vis $FarmD/../../../onewiki/public_html/pmwiki/ etc<br>
><br>
> thanks, and documentation updated<br>
</div><div class="im">> 2009/11/27 Simon <<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>><br>
</div><div class="im">> > Using $FarmD works fine for one wiki.<br>
<br>
</div>Inside a wikifarm, $FarmD always points to the same directory, so in both<br>
wikis you need to have the exact same lines repeated :<br>
$LockFile = "$FarmD/wikishared.d/.flock";<br>
$WikiDir = new PageStore('$FarmD/wikishared.d/$Group/$FullName');<br>
<br>
How have you set your wikifarm? (Or read below.)<br>
<br>
If you are not in a wikifarm, it is also best to use the same command lines,<br>
and it may be better to use full paths without $FarmD which doesn't point to<br>
the same directory. So, I'd use<br>
'/home/onewiki/.../wikishared.d/.flock' or, maybe, on Windows,<br>
'C:/home/onewiki/.../wikishared.d/.flock' or even,<br>
'C:\\home\\onewiki\\...\\wikishared.d\\.flock'<br>
<br>
Note that the recipe deals with shared pages among wikis in a wikifarm. If you<br>
are not in a wikifarm, you have a very custom installation, and it should be<br>
noted on the talk page, and that for wikifarms, people just need to use<br>
$FarmD/wikishared.d .<br>
<div class="im"><br>
> > My directory structure is<br>
> > /home/<br>
> > /onewiki/<br>
> > /public_html/<br>
> > /pmwiki/<br>
> > /wiki.d/<br>
> > /wikishared.d/<br>
> > /twowiki/<br>
> > /public_html/<br>
> > /pmwiki/<br>
> > /wiki.d/<br>
<br>
> > My challenge seems to be to let IIS access wikishared.d from twowiki,<br>
> > hmmm I'll keep you posted, but if anyone has ideas (file system in NTFS)<br>
<br>
</div>If you had a wikifarm, you'd have one set of the PmWiki installation, in your<br>
case, in<br>
onewiki/public_html/pmwiki/<br>
<br>
with all directories wikilib.d, cookbook, pub, pub/skins etc. and files<br>
index.php containing <?php include("pmwiki.php");<br>
local/farmconfig.php which applies to all wikis in the farm, and<br>
local/config.php which applies to onewiki.<br>
<br>
In the directory<br>
twowiki/public_html/pmwiki<br>
<br>
you only have a file index.php which contains<br>
<?php include("/home/onewiki/...pmwiki.php"); # OR<br>
<?php include("../../../onewiki/...pmwiki.php");<br>
<br>
You don't have here a pmwiki.php file, wikilib.d/, scripts/ or cookbook/<br>
directories, etc. but you have local/ directory for configuration and pub/css<br>
and pub/skins directories for local styles and skins.<br>
<br>
In a wikifarm shared between multiple domains, like yours seems to be, there<br>
is a catch with the shared stuff in the farm's pub/ directory (guiedit,<br>
recipes). In that case, you need to define the $FarmPubDirUrl variable in<br>
onewiki/.../local/farmconfig.php to something like:<br>
$FarmPubDirUrl = "<a href="http://www.onewiki.co.nz/pmwiki/pub" target="_blank">http://www.onewiki.co.nz/pmwiki/pub</a>";<br>
<br>
I use a slightly different setting. In each wiki field, I have a symbolic link<br>
to the farm's shared pub direactory, named "common", that is<br>
twowiki/.../pmwiki/common is a link to<br>
onewiki/.../pmwiki/pub<br>
<br>
In that case, I just set<br>
$FarmPubDirUrl = "/common"; # you may want to use "/pmwiki/common"<br>
<br>
I'm not sure if on NTFS filesystems you can have symbolic links.<br>
<font color="#888888"><br>
Petko<br>
</font><div class="im"><br>
> > 2009/11/26 Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>><br>
> > On Wednesday 25 November 2009 10:31:31 Simon wrote:<br>
> >> > I am using the following code to share files in a group from<br>
> >> > <a href="http://pmwiki.org/wiki/Cookbook/SharedPages-Talk" target="_blank">http://pmwiki.org/wiki/Cookbook/SharedPages-Talk</a><br>
> >><br>
> >> Well, this section seems to have been written by you -- you might try to<br>
> >> contact the author... :-)<br>
</div>...<br>
<div><div></div><div class="h5">> >> Always use $FarmD/wikilib.d and $FarmD/wikishared.d including for the<br>
> >> .flock<br>
> >> file and not /home/.../wikishared.d.<br>
> >><br>
> >> LockFile = "$FarmD/wikishared.d/.flock";<br>
> >> $WikiDir = new PageStore('$FarmD/wikishared.d/$Group/$FullName', 1);<br>
> >> # what you have next should work fine<br>
> >><br>
> >> Petko<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>