[dokuwiki] wiki farm

  • From: Jason Keltz <jas@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 03 Dec 2007 13:31:56 -0500

Hi.

I was experimenting (again) with the idea of a DokuWiki wiki farm where all the wikis use the same symlinked copy of DW. I couldn't do this in the past because the use of the php realpath function. However, in the DW development code, this was replaced with the fullpath() function in order to alleviate this problem. I still wasn't able to successfully farm just yet.

I ran into two problems:

1) There's still no built in way to make DOKU_CONF refer to the "local" DW version, rather than the distribution copy:

if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').
'/');

// define config path (packagers may want to change this to /etc/dokuwiki/)
  if(!defined('DOKU_CONF')) define('DOKU_CONF',DOKU_INC.'conf/');

I know it can be done through php prepend, but it's just not elegant. I'd like to be able to do it completely through DW.

2) The second problem is, I think, a bug. The CSS didn't seem to load properly for my template. I think this is because lib/exe/css.php doesn't surround the DOKU_INC define with fullpath:
 if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');

(Neither does ajax.php, detail.php, fetch.php, indexer.php, js.php, mediamanager.php, opernsearch.php, and xmlrpc.php in the same directory)

... but even after adding it, things look better, but some of the images in the css, etc. seem to be missing, so there might be something else going on here.

Jason.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: