I moved the
bin,
conf, and
data directories outside of the webroot,
and I'm having the same issue, with the main doku page unable to find datadir('pages'),
and the install.php throwing read/write errors.
I followed
http://www.dokuwiki.org/security to a T,
and have triple checked everything,
and it's still putting {DOCUMENT ROOT}/conf/ as the path for the conf file,
even though in inc/preload.php I have put define('DOKU_CONF', '/full/path/conf/');
"inc" is still in the web root along with the other dokuwiki files other than the directories I moved.
I'm running PHP 5.2.1 on an Ubuntu box,
and prior to moving the directories, everything was great.
It seems as though the issue lies in the initialization not knowing the full path to the /conf directory,
but I've gone through all the init docs over and over and can't find where I'm going wrong.
I'm tempted to just hard code paths into doku.php or whatever.
Any ideas?