Installing DokuWiki

NOTE: this guide is outdated. Need to make an updated post..

  • First get the tarball from the website
  • Copy the entire extracted directory to /var/www and rename folder as //dokuwiki//
  • Change perms recursively to apache:apache
  • Test apache to make sure php is working
  • Add the following to index.html (or another page on the website)
<a href="/dokuwiki/doku.php">My Wiki Page</a>
<meta http-equiv="refresh" content="9;url=/dokuwiki/doku.php">

Now, edit the dokuwiki config /etc/httpd/conf.d/dokuwiki.conf to have the following

# dokuwiki
# SElinux support for dokuwiki
# 0

Alias /dokuwiki /var/www/dokuwiki

<Directory /var/www/dokuwiki>
        Options +FollowSymLinks
        Order Allow,Deny
        Allow from all

<Directory /var/www/dokuwiki/inc>
        Order Deny,Allow
        Deny from all

<Directory /var/www/dokuwiki/inc/lang>
        Order Deny,Allow
        Deny from all

<Directory /var/www/dokuwiki/lib/_fla>
        ## no access to the fla directory
        Order allow,deny
        Deny from all

#<Directory /etc/dokuwiki>
#       Order Deny,Allow
#       Deny from all

In order to have the files you make unreadable to everyone in the world you will have to set up htaccess to limit permissions on the underlying data structures. To do this edit /etc/httpd/conf/httpd.conf to have the following in the htaccess section (search for htaccess)

<Directory /var/www/dokuwiki>
    order deny,allow
    allow from all

<LocationMatch "/dokuwiki/(data|conf|bin|inc)/">
    order allow,deny
    deny from all
    satisfy all