[pmwiki-devel] Directory structure revisited

Patrick R. Michaud pmichaud at pobox.com
Wed Nov 8 22:25:19 CST 2006


On Thu, Nov 09, 2006 at 04:07:14AM +0100, thp at sigproc.de wrote:
> recently reconfiguring my webserver, I was wondering whether it'd be
> possible (and actually once considered) to separate executed pmwiki scripts
> from files that are accessed by these scripts. 
> [...]
> To implement this, I wonder whether it would be possible to easily adjust
> target paths for the main data directories: wiki.d, upload, pub. Also some
> config files would need to be moved around appropriately in the dir structure.

PmWiki can already do this via settings in the local/config.php
(or local/farmconfig.php) file.  The basic variables controlling
these are $WikiDir, $PubDirUrl, and $UploadDirFmt.  The defaults
are designed for ease of initial installation and maintenance,
while making it easy to switch to other filesystem layouts
such as what you're describing.

For example, on pmwiki.org the entire PmWiki installation is in
a non-web accessible directory (/home/pmichaud/pmwiki), and
there are symlinks/aliases that map the pmwiki.php, /pub, and 
/uploads urls to the appropriate files and directories.  

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.  :-)

Pm



More information about the pmwiki-devel mailing list