2007-05-26
lemsx1
dokuwiki rc2007-05-24 does not respect local.php file when the directory indexdir is not defined in conf/init.php or simply it doesn't exist (or dokuwiki is not able to create it).
in other words, i untar the dir, placed it where it belongs, and copy my old conf/{users,acl,local}.php files then set the permission correctly for the "data" and "conf" directory so that the user running the HTTP daemon can read/write to those directories.
the first page of dokuwiki kept complaining about missing indexdir 'index' and it's not clear where this folder belongs:
DokuWiki Setup Error
The indexdir ('index') does not exist, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?
$> find.pl indexdir
All files chosen
./bin/indexer.php [138]: io_saveFile($conf['indexdir'].'/page.idx','');
./bin/indexer.php [139]: $dir = @opendir($conf['indexdir']);
./bin/indexer.php [144]: @unlink($conf['indexdir']."/$f");
./conf/local.php [11]: $conf['indexdir'] = '/home/sites/wikidata/indexer';
./inc/fulltext.php [160]: $pages = file($conf['indexdir'].'/page.idx');
./inc/indexer.php [68]: $fn = $conf['indexdir'].'/'.$pre.$wlen;
./inc/indexer.php [85]: $fn = $conf['indexdir'].'/'.$pre.$wlen.'.idx';
./inc/indexer.php [97]: $fn = $conf['indexdir'].'/'.$pre.$wlen.'.idx';
./inc/indexer.php [304]: $dir = @opendir($conf['indexdir']);
./inc/indexer.php [318]: if(@file_exists($conf['indexdir']."/i$filter.idx"))
./inc/init.php [143]: 'indexdir' => 'index',
./inc/init.php [168]: $files = array( $conf['indexdir'].'/page.idx');
./lib/exe/indexer.php [130]: (!@file_exists($conf['indexdir'].'/page.idx') ||
./lib/exe/indexer.php [131]: !filesize($conf['indexdir'].'/page.idx')) &&
./lib/exe/indexer.php [132]: !@file_exists($conf['indexdir'].'/index_importing')) {
./lib/exe/indexer.php [261]: $pages = file($conf['indexdir'].'/page.idx');
./lib/plugins/importoldindex/action.php [28]: touch($conf['indexdir'].'/index_importing'); // changelog importing lock
./lib/plugins/importoldindex/action.php [47]: io_saveFile($conf['indexdir']."/w$wlen.idx", implode('', $new_words));
./lib/plugins/importoldindex/action.php [48]: io_saveFile($conf['indexdir']."/i$wlen.idx", implode('', $new_idx));
./lib/plugins/importoldindex/action.php [51]: @copy($conf['cachedir'].'/page.idx', $conf['indexdir'].'/page.idx');
./lib/plugins/importoldindex/action.php [52]: if($conf['fperm']) chmod($conf['indexdir'].'/page.idx', $conf['fperm']);
./lib/plugins/importoldindex/action.php [53]: unlink($conf['indexdir'].'/index_importing'); // changelog importing unlock
As you can see here, indexdir was defined in local.php to some other directory to no avail.