Refer to http://wiki.splitbrain.org/wiki:security
We are able to configure the location of /data via Admin>Configuration Settings>savedir. We would like to use this same interface to set the locations of /conf, /lib and /exe.
Behind the scenes - DOKU_CONF and DOKU_INC constants are already in use. There is no DOKU_LIB constant.
By explicitly locating these directories, rather than attempting to derive them in code, the problems people are reporting in the forums related to lost images, difficult installs, missing templates, etc. may be reduced. Secure installs will be much simpler. It may help with wiki farms as well.
This change could be done as a gradual migration with a target release for completion.