[pmwiki-devel] Directory structure revisited
Patrick R. Michaud
pmichaud at pobox.com
Thu Nov 9 07:30:29 CST 2006
On Thu, Nov 09, 2006 at 10:37:24AM +0100, thp at sigproc.de wrote:
> Pm wrote:
> >
> >In short, if you describe the directory structure you want to have,
> >we can probably come up with the local configuration settings to
> >make it happen. :-)
>
> Here the directory structure that I had in mind (still incomplete, see below):
>
> .../myhome/
> docRoot/ (served by webserver to extern, non-wrtble)
> myPmWiki/
> pmwiki.php
> scripts/
> pub/ ?
> etc.
> scriptAccessibleFileSpace/ (accessible for scripts on file access)
> myPmWiki/
> upload/
> wiki.d/
> pub/ ?
> [...]
> DocumentRoot .../myhome/docRoot/
> php_admin_value open_basedir .../myhome/scriptAccessibleFileSpace/
We would also need to put wikilib.d/ into scriptAccessibleFileSpace/ .
With that in mind, here are the PmWiki settings to put all of the
accessed files into .../myhome/scriptAccessibleFileSpace:
$BaseDir = '.../myhome/scriptAccessibleFileSpace';
$WikiDir = new PageStore("$BaseDir/wiki.d/{\$FullName}");
$WikiLibDirs = array(&$WikiDir,
new PageStore("$BaseDir/wikilib.d/{\$FullName}"));
$WorkDir = "$BaseDir/wiki.d";
$UploadDirFmt = "$BaseDir/uploads";
$PageCSSListFmt = array(
"$BaseDir/pub/css/local.css" => '$PubDirUrl/css/local.css',
"$BaseDir/pub/css/{$Group}.css" => '$PubDirUrl/pub/css/{$Group}.css',
"$BaseDir/pub/css/{$FullName}.css" =>
'$PubDirUrl/pub/css/{$FullName}.css'));
$SkinLibDirs = array(
"$BaseDir/pub/skins/\$Skin" => "$PubDirUrl/skins/\$Skin");
Pm
More information about the pmwiki-devel
mailing list