Install DokuWiki

1 minute read

Description:

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:

    1
    2
    3
    4
    5
    
    yum install dokuwiki dokuwiki-selinux
    
    # Start and enable httpd
    systemctl start httpd.service
    systemctl enable httpd.service
    
  2. That’s it! DokuWiki should now be available by browsing to “http://localhost/dokuwiki”

  3. 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:
    1
    2
    
    conf['useacl'] = 1;$
    conf['superuser'] = '@admin';
    
  4. This enables ACL and gives all members admin rights.

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

    1
    
    admin:21232f297a57a5a743894a0e4a801fc3:Admin:example@example.com:admin
    
    • This adds the user “admin” with the password “admin” as a member of the “admin” group.
    • Paths:
    • DokuWiki – /usr/share/dokuwiki
    • Configuration – /etc/dokuwiki
    • Data directory – /var/lib/data
  6. 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”.

References:

“Install Dokuwiki”

-----------------------------------------------------------
Spotted a mistake in this article? Why not suggest an edit!
-----------------------------------------------------------

Comments