Thankyou very much for this. Currently I don&#39;t have a farm, its a good idea.<div>I tried a long time ago.</div><div>I&#39;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">&lt;<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>&gt;</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>
&gt; Problem solved,<br>
&gt; I have to make the path more relative, so to speak.<br>
&gt; vis   $FarmD/../../../onewiki/public_html/pmwiki/  etc<br>
&gt;<br>
&gt; thanks, and documentation updated<br>
</div><div class="im">&gt; 2009/11/27 Simon &lt;<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>&gt;<br>
</div><div class="im">&gt; &gt; 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 = &quot;$FarmD/wikishared.d/.flock&quot;;<br>
  $WikiDir = new PageStore(&#39;$FarmD/wikishared.d/$Group/$FullName&#39;);<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&#39;t point to<br>
the same directory. So, I&#39;d use<br>
  &#39;/home/onewiki/.../wikishared.d/.flock&#39;        or, maybe, on Windows,<br>
  &#39;C:/home/onewiki/.../wikishared.d/.flock&#39;      or even,<br>
  &#39;C:\\home\\onewiki\\...\\wikishared.d\\.flock&#39;<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>
&gt; &gt; My directory structure is<br>
&gt; &gt; /home/<br>
&gt; &gt;     /onewiki/<br>
&gt; &gt;         /public_html/<br>
&gt; &gt;             /pmwiki/<br>
&gt; &gt;                 /wiki.d/<br>
&gt; &gt;                 /wikishared.d/<br>
&gt; &gt;     /twowiki/<br>
&gt; &gt;         /public_html/<br>
&gt; &gt;             /pmwiki/<br>
&gt; &gt;                 /wiki.d/<br>
<br>
&gt; &gt; My challenge seems to be to let IIS access wikishared.d from twowiki,<br>
&gt; &gt; hmmm I&#39;ll keep you posted, but if anyone has ideas  (file system in NTFS)<br>
<br>
</div>If you had a wikifarm, you&#39;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 &lt;?php include(&quot;pmwiki.php&quot;);<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>
  &lt;?php include(&quot;/home/onewiki/...pmwiki.php&quot;); # OR<br>
  &lt;?php include(&quot;../../../onewiki/...pmwiki.php&quot;);<br>
<br>
You don&#39;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&#39;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 = &quot;<a href="http://www.onewiki.co.nz/pmwiki/pub" target="_blank">http://www.onewiki.co.nz/pmwiki/pub</a>&quot;;<br>
<br>
I use a slightly different setting. In each wiki field, I have a symbolic link<br>
to the farm&#39;s shared pub direactory, named &quot;common&quot;, that is<br>
  twowiki/.../pmwiki/common is a link to<br>
  onewiki/.../pmwiki/pub<br>
<br>
In that case, I just set<br>
  $FarmPubDirUrl = &quot;/common&quot;; # you may want to use &quot;/pmwiki/common&quot;<br>
<br>
I&#39;m not sure if on NTFS filesystems you can have symbolic links.<br>
<font color="#888888"><br>
Petko<br>
</font><div class="im"><br>
&gt; &gt; 2009/11/26 Petko Yotov &lt;<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>&gt;<br>
&gt; &gt; On Wednesday 25 November 2009 10:31:31 Simon wrote:<br>
&gt; &gt;&gt; &gt; I am using the following code to share files in a group from<br>
&gt; &gt;&gt; &gt; <a href="http://pmwiki.org/wiki/Cookbook/SharedPages-Talk" target="_blank">http://pmwiki.org/wiki/Cookbook/SharedPages-Talk</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Well, this section seems to have been written by you -- you might try to<br>
&gt; &gt;&gt; contact the author... :-)<br>
</div>...<br>
<div><div></div><div class="h5">&gt; &gt;&gt; Always use $FarmD/wikilib.d and $FarmD/wikishared.d including for the<br>
&gt; &gt;&gt; .flock<br>
&gt; &gt;&gt; file and not /home/.../wikishared.d.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;  LockFile = &quot;$FarmD/wikishared.d/.flock&quot;;<br>
&gt; &gt;&gt;  $WikiDir = new PageStore(&#39;$FarmD/wikishared.d/$Group/$FullName&#39;, 1);<br>
&gt; &gt;&gt;  # what you have next should work fine<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; 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>