Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to move the DokuWiki data directory away from its default location (because I keep the installation and configuration in version control, but data needs to kept elsewhere, in order to be properly backed up and not be clobbered when upgrading the software version).

How do I this? Is there a simple configuration file? Are there any gotchas?

share|improve this question
up vote 1 down vote accepted

You can change the default location of the data directory by editing /conf/dokuwiki.php

Find line 22 and look for 'savedir' below is the snippet of this entry.

$conf['savedir']     = './data';          //where to store all the files
share|improve this answer
you should not modify conf/dokuwiki.php it will be overwritten on update. Instead create a conf/local.php with the changed setting. – Andreas Gohr Nov 17 '14 at 8:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.