These instructions are written for Fedora 16, there may be differences for other versions.
DokuWiki is available in the Fedora repositories. So
yum install dokuwiki dokuwiki-selinux
The package dokuwiki-selinux does configure SELinux to allow dokuwiki to write to its configuration. Its necessary for the Configuration Manager of DokuWiki to work.
Package details are available at https://admin.fedoraproject.org/pkgdb/acls/name/dokuwiki
Apache, named httpd in Fedora, is not enabled by default.
You may start it with
systemctl start httpd.service
And you may enable it for automatic startup at system boot with
systemctl enable httpd.service
To disable or to stop httpd, just use the commands “disable” and “stop”.
DokuWiki should be accessible at http://localhost/dokuwiki now.
The basic configuration just lets you create and edit pages, but doesn't allow you to login and use the Configuration Manager.
The configuration resides in /etc/dokuwiki. local.php contains your local configuration, dokuwiki.php contains dokuwikis defaults and should be left alone. The Configuration Manager also writes to local.php.
To enable login, edit local.php an set
$conf['useacl'] = 1; $conf['superuser'] = '@admin';
This enables ACL (Access Control) and gives all members of the group “admin” superuser rights.
Now add a new user to users.auth.php
admin:21232f297a57a5a743894a0e4a801fc3:Admin:example@example.com:admin
The user is named “admin” with password “admin” and is member of the group “admin”, which has superuser rights.
You can now login as user “admin” and use DokuWikis admin tools to configure it, to add new users and the like.
| DokuWiki | /usr/share/dokuwiki |
| Configuration | /etc/dokuwiki |
| Data directory | /var/lib/dokuwiki/data |