I've been messing around with both of these ideas - at this point I
have 4 separate installs, and am ready to figure out how to meld them
into a farm. Everything in the documentation appears to work
EXCEPT for the page on FarmSecurity - I have put the pmwiki.php, etc.,
in a directory that is inaccessible to browsers, as recommended, and
the only part I am having trouble with is:<br>
<br>
"To prevent this the best solution is to move the whole farm
installation out of the public server space (out of the html/ or
public_html/ directory tree) into a protected space which is not
accessible to browsers, ***and then create a symlink or webserver alias so
that /farmpub points to the farm's pub/ directory, and then set $FarmPubDirUrl = '/farmpub'; in farmconfig.php.***"<br>
<br>
I don't know a whole lot about Apache or symlinks, and what I have
tried as failed. Without doing anything, everything works EXCEPT
the CSS files -- PHP is able to parse the template and all of that, but
it is displayed without any style information because the browser isn't
able to access the CSS files: <br>
<br>
(404 - "The requested URL /farmpub/skins/pmwiki/pmwiki.css was not found on this server.")<br>
<br>
So, after doing a little searching around, I put the following type of
thing (with the correct paths) in my .htaccess (in the wiki field
directory):<br>
<br>
#Alias for /pub directory<br>
Alias /farmpub /path/to/pmwiki/pub<br>
<Directory /path/to/pmwiki/pub><br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
This created a 500 Internal Server Error.<br>
<br>
I was using clean urls as well, so I took those out, to no avail.<br>
<br>
So then I tried using a "symlink". Again I didn't know what i was
doing so I just looked it up and ended up using the following command
to create a link (from the field /pub directory):<br>
<br>
ln -s /path/to/pmwiki/pub farmpub<br>
<br>
This gave me a 403 (forbidden) error and I wasn't even able to get the layout, so it was a total failure. <br>
<br>
Am I doing something weird? Am I misunderstanding how to do
either of these? Anyone have any other ideas? If nothing
else, I hope this offers a view of how a newbie might attempt to figure
out how to read the FarmSecurity page.<br>
<br>
--Jon Haupt<br>