[pmwiki-users] Is there any way to have more than one shared directory?
JB
jbit at bitlink.com
Mon Nov 27 14:49:05 CST 2006
> Oops, you're correct, that was a typo on my part. It doesn't
> matter at all where the $LockFile is located -- it just needs
> to be somewhere writable by the webserver, and all wikis that
> have a shared writable PageStore need to be sharing the same
> lockfile.
OK, I see that one problem was I was trying to setup
more than one $LockFile which goofed up the variable
values. I got it working with multiple shared
directories by putting in my farmconfig.php:
$LockFile = "$FarmD/shared.d/.flock";
$UkuleleDir = "/var/www/home/gnuzoo/public_html/ukuleleshared.d/";
$WikiLibDirs = array(
&$WikiDir,
new PageStore($UkuleleDir.'$FullName', 1),
new PageStore('$FarmD/shared.d/$FullName', 1),
new PageStore('$FarmD/wikilib.d/$FullName'));
Now I have a different problem. Not all my wikis on the
farm use the $UkuleleDir. So I want to move part of the
above into the local wiki config.php.
This failed:
farmconfig.php
$LockFile = "$FarmD/shared.d/.flock";
$WikiLibDirs = array(
&$WikiDir,
new PageStore('$FarmD/shared.d/$FullName', 1),
new PageStore('$FarmD/wikilib.d/$FullName'));
local/config.php
$UkuleleDir = "/var/www/home/gnuzoo/public_html/ukuleleshared.d/";
$WikiLibDirs[] = new PageStore($UkuleleDir.'$FullName', 1);
Is there a way to glom a new writeable shared directory on to the
shared directories already defined?
More information about the pmwiki-users
mailing list