DokuWiki : An opensource wiki to maintain information

>In this article I will show you how you can install and use dokuwiki to keep your information in formatted manner.The biggest thing attract me that it uses flat file or plain text file to store information then backend database.So if you want to distribute the that file across different partition to get the same doc.Whereas in the corporate there should be separate dokuwiki server to maintain all the information.

Get the software:

bhaskar@bhaskar-laptop_16:24:53_Thu Oct 14:~/Documents> sudo yum install dokuwiki
[sudo] password for bhaskar:
Loaded plugins: presto, refresh-packagekit
google-chrome | 951 B 00:00
google-chrome/primary | 3.1 kB 00:00
google-chrome 5/5
openvz-kernel-rhel5 | 951 B 00:00
openvz-utils | 951 B 00:00
rpmfusion-free-updates | 2.8 kB 00:00
updates/metalink | 3.3 kB 00:00
updates | 4.7 kB 00:01
updates/primary_db | 5.0 MB 05:42
updates-source/metalink | 3.3 kB 00:00
updates-source | 3.3 kB 00:00
Setting up Install Process
Package dokuwiki-0-0.4.20091225.c.fc12.noarch already installed and latest version
Nothing to do

So it says I already have it and yes I had it long time back.Lets check out:


bhaskar@bhaskar-laptop_17:07:28_Thu Oct 14:~/Documents> sudo rpm -qi dokuwiki
[sudo] password for bhaskar:
Name : dokuwiki Relocations: (not relocatable)
Version : 0 Vendor: Fedora Project
Release : 0.4.20091225.c.fc12 Build Date: Tue 19 Jan 2010 04:23:45 PM IST
Install Date: Thu 23 Sep 2010 03:51:04 PM IST Build Host: x86-04.phx2.fedoraproject.org
Group : Applications/Internet Source RPM: dokuwiki-0-0.4.20091225.c.fc12.src.rpm
Size : 6977076 License: GPLv2
Signature : RSA/8, Tue 19 Jan 2010 04:53:04 PM IST, Key ID 9d1cc34857bbccba
Packager : Fedora Project
URL : http://www.dokuwiki.org/dokuwiki
Summary : Standards compliant simple to use wiki
Description :
DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating
documentation of any kind. It has a simple but powerful syntax which makes sure
the datafiles remain readable outside the Wiki and eases the creation of
structured texts.

All data is stored in plain text files no database is required.

Lets find out the file that installed by this software:

/etc/dokuwiki
/etc/dokuwiki/acl.auth.php
/etc/dokuwiki/acronyms.conf
/etc/dokuwiki/dokuwiki.php
/etc/dokuwiki/entities.conf
/etc/dokuwiki/interwiki.conf
/etc/dokuwiki/license.php
/etc/dokuwiki/local.php
/etc/dokuwiki/mediameta.php
/etc/dokuwiki/mime.conf
/etc/dokuwiki/msg
/etc/dokuwiki/scheme.conf
/etc/dokuwiki/smileys.conf
/etc/dokuwiki/users.auth.php
/etc/dokuwiki/wordblock.conf
/etc/dokuwiki/words.aspell
/etc/httpd/conf.d/dokuwiki.conf
/usr/share/doc/dokuwiki-0
/usr/share/doc/dokuwiki-0/COPYING
/usr/share/doc/dokuwiki-0/README
/usr/share/doc/dokuwiki-0/VERSION
/usr/share/doc/dokuwiki-0/mysql.conf.php.example
/usr/share/dokuwiki
/usr/share/dokuwiki/bin/dwpage.php
/usr/share/dokuwiki/bin/indexer.php
/usr/share/dokuwiki/bin/wantedpages.php
/usr/share/dokuwiki/conf
/usr/share/dokuwiki/doku.php
/usr/share/dokuwiki/feed.php
/usr/share/dokuwiki/inc
/usr/share/dokuwiki/inc/DifferenceEngine.php
/usr/share/dokuwiki/inc/FeedParser.php
/usr/share/dokuwiki/inc/HTTPClient.php
/usr/share/dokuwiki/inc/IXR_Library.php
/usr/share/dokuwiki/inc/JSON.php
/usr/share/dokuwiki/inc/JpegMeta.php
/usr/share/dokuwiki/inc/SimplePie.php
/usr/share/dokuwiki/inc/TarLib.class.php
/usr/share/dokuwiki/inc/ZipLib.class.php
/usr/share/dokuwiki/inc/actions.php
/usr/share/dokuwiki/inc/adLDAP.php
/usr/share/dokuwiki/inc/auth
/usr/share/dokuwiki/inc/auth.php
/usr/share/dokuwiki/inc/auth/ad.class.php
/usr/share/dokuwiki/inc/auth/basic.class.php
/usr/share/dokuwiki/inc/auth/ldap.class.php
/usr/share/dokuwiki/inc/auth/mysql.class.php
/usr/share/dokuwiki/inc/auth/pgsql.class.php
/usr/share/dokuwiki/inc/auth/plain.class.php
/usr/share/dokuwiki/inc/blowfish.php
/usr/share/dokuwiki/inc/cache.php
/usr/share/dokuwiki/inc/changelog.php
/usr/share/dokuwiki/inc/cliopts.php
/usr/share/dokuwiki/inc/common.php
/usr/share/dokuwiki/inc/confutils.php
/usr/share/dokuwiki/inc/events.php
/usr/share/dokuwiki/inc/feedcreator.class.php
/usr/share/dokuwiki/inc/form.php
/usr/share/dokuwiki/inc/fulltext.php
/usr/share/dokuwiki/inc/html.php
/usr/share/dokuwiki/inc/httputils.php
/usr/share/dokuwiki/inc/indexer.php
/usr/share/dokuwiki/inc/infoutils.php
/usr/share/dokuwiki/inc/init.php
/usr/share/dokuwiki/inc/io.php
/usr/share/dokuwiki/inc/lang
/usr/share/dokuwiki/inc/lang/af
/usr/share/dokuwiki/inc/lang/af/lang.php
/usr/share/dokuwiki/inc/lang/ar
/usr/share/dokuwiki/inc/lang/ar/admin.txt
/usr/share/dokuwiki/inc/lang/ar/backlinks.txt
/usr/share/dokuwiki/inc/lang/ar/conflict.txt
/usr/share/dokuwiki/inc/lang/ar/denied.txt
/usr/share/dokuwiki/inc/lang/ar/diff.txt
/usr/share/dokuwiki/inc/lang/ar/draft.txt
/usr/share/dokuwiki/inc/lang/ar/edit.txt
/usr/share/dokuwiki/inc/lang/ar/editrev.txt
/usr/share/dokuwiki/inc/lang/ar/index.txt
/usr/share/dokuwiki/inc/lang/ar/lang.php
/usr/share/dokuwiki/inc/lang/ar/locked.txt
/usr/share/dokuwiki/inc/lang/ar/login.txt
/usr/share/dokuwiki/inc/lang/ar/mailtext.txt
/usr/share/dokuwiki/inc/lang/ar/newpage.txt
/usr/share/dokuwiki/inc/lang/ar/norev.txt
/usr/share/dokuwiki/inc/lang/ar/password.txt
/usr/share/dokuwiki/inc/lang/ar/preview.txt
/usr/share/dokuwiki/inc/lang/ar/pwconfirm.txt
/usr/share/dokuwiki/inc/lang/ar/read.txt
/usr/share/dokuwiki/inc/lang/ar/recent.txt
/usr/share/dokuwiki/inc/lang/ar/register.txt
/usr/share/dokuwiki/inc/lang/ar/resendpwd.txt
/usr/share/dokuwiki/inc/lang/ar/revisions.txt
/usr/share/dokuwiki/inc/lang/ar/searchpage.txt
/usr/share/dokuwiki/inc/lang/ar/showrev.txt
/usr/share/dokuwiki/inc/lang/ar/stopwords.txt
/usr/share/dokuwiki/inc/lang/ar/subscribermail.txt
/usr/share/dokuwiki/inc/lang/ar/updateprofile.txt
/usr/share/dokuwiki/inc/lang/bg
/usr/share/dokuwiki/inc/lang/bg/admin.txt
/usr/share/dokuwiki/inc/lang/bg/adminplugins.txt
/usr/share/dokuwiki/inc/lang/bg/backlinks.txt
/usr/share/dokuwiki/inc/lang/bg/conflict.txt
/usr/share/dokuwiki/inc/lang/bg/denied.txt
/usr/share/dokuwiki/inc/lang/bg/diff.txt
/usr/share/dokuwiki/inc/lang/bg/draft.txt
/usr/share/dokuwiki/inc/lang/bg/edit.txt
/usr/share/dokuwiki/inc/lang/bg/editrev.txt
/usr/share/dokuwiki/inc/lang/bg/index.txt
/usr/share/dokuwiki/inc/lang/bg/install.html
/usr/share/dokuwiki/inc/lang/bg/lang.php
/usr/share/dokuwiki/inc/lang/bg/locked.txt
/usr/share/dokuwiki/inc/lang/bg/login.txt
/usr/share/dokuwiki/inc/lang/bg/mailtext.txt
/usr/share/dokuwiki/inc/lang/bg/newpage.txt
/usr/share/dokuwiki/inc/lang/bg/norev.txt
/usr/share/dokuwiki/inc/lang/bg/password.txt
/usr/share/dokuwiki/inc/lang/bg/preview.txt
/usr/share/dokuwiki/inc/lang/bg/pwconfirm.txt
/usr/share/dokuwiki/inc/lang/bg/read.txt

.......output snipped for clarity

Hell lot of files get installed by the software.Next move on to installation of this software.We must have the top tree in the web space scope to get access through the browser.

bhaskar@bhaskar-laptop_17:20:58_Thu Oct 14:~/Documents> ls -al /var/www/html/dokuwiki/
total 44
drwxr-xr-x. 6 root root 4096 2010-09-23 18:08 .
drwxr-xr-x. 5 root root 4096 2010-09-24 18:15 ..
drwxr-xr-x. 2 root root 4096 2010-09-23 15:50 bin
drwxr-xr-x. 2 root root 4096 2010-09-23 18:10 conf
-rw-r--r--. 1 root root 2258 2010-09-23 16:01 doku.php
-rw-r--r--. 1 root root 11725 2010-01-17 16:05 feed.php
drwxr-xr-x. 5 root root 4096 2010-09-23 15:50 inc
-rw-r--r--. 1 root root 185 2010-09-23 16:09 index.php
drwxr-xr-x. 9 root root 4096 2010-09-23 15:51 lib

Now next job is go to the browser and invoke


http://localhost/dokuwiki/install.php

Now a bit of file permission issue which might raised in the time or after the installation.Here is some point stright out of the dokuwiki site:

  • Permissions for a file are dependent of the file’s owner and group and the user who tries to access the file
  • There are permissions for read, write and execute
  • Each UNIX process runs with the permissions of an OS user and his groups
  • The web server is a UNIX process
  • PHP usually runs as part of the web server
  • DokuWiki will run with the permissions of the PHP processor
  • DokuWiki needs read, write and execute permissions for directories it needs to create files in
  • DokuWiki needs read and write permissions for files it needs to write to
  • DokuWiki needs read only permissions for files and directories it doesn’t need to write to

For more details on the permission setting see here .

Now once you are up and running with proper setting of php(yes,dokuwiki depend on php and should integrated with a web server.In out case we use Apache)

But until you configure your web server properly you won’t be able to get the proper thing about this software. So let me share the Apache config related to this software:


1 # dokuwiki
2 # Standards compliant simple to use wiki
3 # 0
4 #
5 Alias /dokuwiki /var/www/html/dokuwiki
6
7 Options +FollowSymLinks
8 Order Allow,Deny
9 Allow from 127.0.0.1 ::1
10
11
12 Order Deny,Allow
13 Deny from all
14
15
16 Order Deny,Allow
17 Deny from all
18
19
20 ## no access to the fla directory
21 Order allow,deny
22 Deny from all
23
24
25 Order Deny,Allow
26 Deny from all
27
~

So name it as dokuwiki.conf and put it in the /etc/apache| httpd/conf.d/

Restart the Apache to and go to the browser to get the start page by visiting the url mentioned above.

The dokuwiki file structure under the /etc looks like below:

bhaskar@bhaskar-laptop_17:37:34_Thu Oct 14:/etc/dokuwiki> ls
acl.auth.php dokuwiki.php interwiki.conf local.php mime.conf scheme.conf users.auth.php words.aspell
acronyms.conf entities.conf license.php mediameta.php msg smileys.conf wordblock.conf

Here it looks like on my system as I have created many pages with documentation,

Dokuwiki :

Now it is blessed with ACL(Access Control List),so you can tighten the grip on web space file permission.

bhaskar@bhaskar-laptop_17:37:34_Thu Oct 14:/etc/dokuwiki> sudo getfacl /var/www/html/dokuwiki/
[sudo] password for bhaskar:
getfacl: Removing leading '/' from absolute path names
# file: var/www/html/dokuwiki/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

Now the files might have different permission for your case.

To create a page you have click on the start hyperlink and it will provide you an empty page. On that page you have to click on the “create page” button to start working on it.

Dokuwiki has it’s own syntax to work with and is very easy to implement.Kindly glean over it’s syntax page for details.

Hope this will give you a fair idea how it works.If possible I might update this page later time with more details.

Cheers!
Bhaskar

About unixbhaskar
GNU/Linux Consultant

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: