Setting up dokuwiki for multisite usage
The goal is to set up a dokuwiki website that is easily updatable, usable in multiple website environments, including windows servers. New updates should be easily distributed to client website enviroments.
Goal folder structure
- root folder
- htdocs (dokuwiki, svn:external to generic updatable copy)
- data
- conf
Data folder is easy to move to parent folder, just change the location in the configuration. The conf folder however is going to be difficult.
Dokuwiki helps, init.php contains a DOKU_CONF constant definition that can be used for packaging purposes, in other words, just what I want. Just change the default DOKU_CONF location in inc/init.php. Warning, this needs to be rechecked at each update.
This is how the svn repository will look like. Branching and tagging is used for version control and for separating each website.
Repository:
- websites
- website1
- conf
- data
- htdocs X to dokuwiki/version
- website2
- conf
- data
- htdocs X to tags/dokuwiki-version
- dokuwiki
- 2006-11-06
- 2008-05-05
- …
- libs
- pagemove X to libs/pagemove/version.a.b.c
- …
- libs
- pagemove
- version.a.b.c
- scripts
- update script for setting file permissions after svn update