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.
Open terminal and then type:
yum install dokuwiki dokuwiki-selinux # Start and enable httpd systemctl start httpd.service systemctl enable httpd.service
That’s it! DokuWiki should now be available by browsing to “http://localhost/dokuwiki”
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.
- Navigate to: /etc/dokuwiki/local.php and set:
conf['useacl'] = 1;$ conf['superuser'] = '@admin';
This enables ACL and gives all members admin rights.
Now add a new user to “users.auth.php”:
- 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
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”.