4
The directory structure of DokuWiki's data tree has changed such that
5
the new location for the pages (*.txt) is
6
/var/lib/dokuwiki/data/pages. Additionally the 'attic' and 'media'
7
directories have moved from /var/lib/dokuwiki/ to
8
/var/lib/dokuwiki/data/.
10
The support for access control has also been improved. The default
11
location for the user database files 'acl.auth.php' and
12
'users.auth.php' at /etc/dokuwiki does not allow the files to be
13
writable for the web server. For this reason the files are located at
14
/var/lib/dokuwiki/acl/. Access control can be turned on in the
15
configuration file /etc/dokuwiki/dokuwiki.php by setting
16
$conf['useacl'] to '1'. By default, everyone is granted level 4 access
17
(see the DokuWiki guide at http://wiki.splitbrain.org/).
19
-- Matti Pöllä <mpo@iki.fi>, Tue, 05 Jul 2005 11:50:17 +0300
4
21
The contents of the configuration files under conf/ in the upstream
5
22
source tree can be found in /etc/dokuwiki.
7
24
-- Matti Pöllä <mpo@iki.fi>, Mon, 04 Apr 2005 08:37:19 +0200
26
A few tips for Debian's DokuWiki (last update for dokuwiki 2005-02-18a)
27
--------------------------------
29
(courtesy from Frédéric Lehobey)
31
Q: How to handle a local configuration file?
32
A: Create a file /etc/dokuwiki/local.php where you put all your
33
preferred values for the configuration variables like:
36
$conf['superuser'] = '@admin';
39
(this gives to the 'admin' group the dokuwiki superuser power). Do
40
not leave any empty line at the end of this file.
42
Q: How can I select my language for dokuwiki?
43
A: Put your language in 'lang' variable like with adding the following
44
line to /etc/dokuwiki/local.php:
48
(available languages may by found in /usr/share/dokuwiki/lang).
51
A: For the 'plain' authentication type, chosen by the (default)
53
$conf['authtype'] = 'plain';
55
variable, ACL is enabled by the
61
This authentication is ruled by the /etc/dokuwiki/acl.auth, and
62
/etc/dokuwiki/users.auth files. You have templates of them in
63
/etc/dokuwiki/ with a .dist suffix appended.
65
Notice, that if you want to allow users to register themselves, as
67
$conf['openregister']= 1;
69
is enabled by default you must have /etc/dokuwiki/users.auth writable
70
by the web server. If you are using apache or apache2 with Debian a
72
# chown www-data /etc/dokuwiki/users.auth
76
Notice also clear text emails are sent by dokuwiki containing the
77
password (used in clear text later anyways). The dokuwiki email
78
sender is (optionally) set by the
80
$conf['mailfrom'] = 'your.email@example.foo';
82
variable (empty default). Remember that on a standard Debian
83
installation, exim4 requires rewriting of the email sender through the
84
/etc/email-addresses mechanism which would allow dokuwiki issued mail
85
to go outside only with some
87
www-data: relevant.email@example.foo
89
entry in /etc/email-addresses system configuration file.
91
Finally notice that the (editable) /etc/dokuwiki.users text file
92
expects fields in the following order:
94
user:MD5password:Real Name:email@example.foo:groups,comma,separated
96
groups being listed _without_ the usual leading '@' for groups.
98
The default group for new users is chosen by
100
$conf['defaultgroup']= 'user';
102
The 'md5sum.textutils --string=password' command (from coreutils
103
package) may be useful.
105
Q: What do I have to save when moving (or backuping) dokuwiki
107
A: According to the online documentation the files (or directories) to
110
/var/lib/dokuwiki/attic/, /var/lib/dokuwiki/changes.log,
111
/var/lib/dokuwiki/data, /var/lib/dokuwiki/media, and (if any)
112
/etc/dokuwiki/local.php
114
and, for ACL, /etc/dokuwiki/acl.auth and /etc/dokuwiki/users.auth
115
should also be preserved.
117
In case of inconsistencies, .cache directories in data and media, may
118
have to be cleared (maybe also your browser ones).
123
It is possible to customise the default stylesheet by creating a CSS
124
file in /etc/dokuwiki:
126
- userstyle.css makes your changes available in screen mode.
127
- userprint.css makes your changes available in print mode.
129
More information is available at
130
<http://wiki.splitbrain.org/wiki:devel:css#stylesheet_loading>.