Install DokuWiki

1 minute read


Follow these steps to install DokuWiki on Linux Fedora. DokuWiki is a lightweight wiki that I will install on top of Apache web server in Fedora.

To Resolve:

  1. Open terminal and then type:
yum install dokuwiki dokuwiki-selinux

# Start and enable httpd
systemctl start httpd.service
systemctl enable httpd.service
  1. That’s it! DokuWiki should now be available by browsing to “http://localhost/dokuwiki”

  2. By default, DokuWiki lets you add and edit pages, but you cannot get to the configuration manager until you edit some files, so lets do that.

3a. Navigate to: /etc/dokuwiki/local.php and set:

conf['useacl'] = 1;$
conf['superuser'] = '@admin';
  1. This enables ACL and gives all members admin rights.

  2. Now add a new user to “users.auth.php”:

NOTE: This adds the user “admin” with the password “admin” as a member of the “admin” group.

DokuWiki – /usr/share/dokuwiki
Configuration – /etc/dokuwiki
Data directory – /var/lib/data

  1. Lastly, if you plan to access the dokuwiki through the network you have to edit the file named “dokuwiki.conf” in the directory /etc/httpd/conf.d/. For Fedora 18 and later, you find the line that says “Require Local” and change it to “Require all granted”. Save the file and restart the apache server using the command “systemctl restart httpd.service”.