[Pmwiki-users] WikiDocRoot ?
Fri Aug 1 05:24:39 CDT 2003
as I mentioned earlier on this list, I use pmwiki in a CGI-based setup.
Currently the program does a lot of things relative to $ScriptUrl,
assuming that everything is located under that path. Several add-on
packages also look for their own stuff relative to $ScriptUrl. But when
the target object must be accessible directly to the web server, i.e.
without going through pmwiki.php, you need to specify the explicit url
in possibly several places and files (the pmwiki logo and the upload/
area, for instance).
For the above reasons, I propose to introduce the new $WikiDocRoot
configuration variable (which will default to $ScriptUrl), where
the sysadmin can set the necessary url. For instance, in my setup
this is the actual CGI program, a simple shell wrapper that "knows"
where the actual PmWiki is installed.
this is the part of my pmwiki installation that the web server has direct
access to (that is, where uploads/ is located, and things like that)
So, in my example, the proposed $WikiDocRoot would contain:
and this would centralize this bit of information in local.php, rather than
having to hard-code it explicitly in a few other files (redundant definitions
are always a bad thing).
Just a thought. If there is already something in pmwiki that can be used
for this purpose, my apologies (I'm a new user and I am not completely
familiar with the pmwiki program code).
For best reading please set the Courier font.
Freedom for Business: http://swpat.ffii.org
More information about the pmwiki-users