This is an old revision of the document!
Table of Contents
Fedora Package
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
httpd
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.
Configuration
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.
Paths
DokuWiki | /usr/share/dokuwiki |
Configuration | /etc/dokuwiki |
Data directory | /var/lib/dokuwiki/data |
Allowing access
Once this is installed, you should be able to access this on your local machine. A problem may arise when you try to access it through a network. This has to do with the config settings of Dokuwiki, to change them, Navigate to /etc/httpd/conf.d/ and there should be a file named dokuwiki.conf. Edit the file and find the line that says “Allow 127.0.0.1 only” and change it to say “Allow from All”. Save the file and restart the Apache server(httpd). It should now allow remote requests to the site.