In one of my earlier articles I showed you how to build a website like Wikipedia, now let me show how to build a lighter version of Wikipedia using DokuWiki.

Lighter? Yes DokuWiki doesn’t need a database to start with. Since DokuWiki works on plain text files it is very easy to publish information within your company.

DokuWiki Logo

Inbuilt Caching capabilities, hassle-free installation, International Language support, Index Based rapid search capability and many more interesting features makes DokuWiki an attractive pick.

DokuWiki Installation

System Requirements: A Web server that supports PHP like Nginx, Apache, etc., PHP version 5.2 and above.

  • Ensure that your server meets the above requirements before you start proceeding with the installation.
  • Next, go to the DokuWiki download page where you should see three columns, the version – leave it as it is, languages – if you are planning to run a multi lingual website then keep them all selected else just select those that you require, Plugins – select those plugins which you need.
  • Now click on the Download Button to get a copy of your DokuWiki.
  • A .TGZ file of size around 3.5 MB will be downloaded.
  • Move the downloaded .TGZ file to your local XAMPP server path (C:\xampp\htdocs\dokuwiki\) and extract it, you should see a .TAR file which needs to be extracted again.
  • Once you have extracted all the files, navigate to the below URL from your browser:

http://localhost/dokuwiki/install.php

  • Enter Wiki Name, username, password and ACL (Access Control List) Policy for your site. There are three ACL policies available (Open Wiki, Public Wiki, and Closed Wiki) choose the one that suits your need.

Installing DokuWiki on XAMPP

  • There are 7 Licenses available under which you can classify your website content or you can also simply choose “Do not show any license information” option too.
  • Click the Save button.
  • You should see a message that says, the configuration was finished successfully and you may delete the install.php file.

That’s it your installation is done :-) Click on the “Continue to your new DokuWiki link” (http://localhost/dokuwiki/doku.php?id=wiki:welcome) to land on your homepage.

What will happen you don’t delete the install.php?

Nothing much, you will see a message that says a DokuWiki installation is already in place and hence the script cannot be run again.

First Steps with DokuWiki

Now that you have installed DokuWiki let us get our hands dirty by playing around a little bit.

Create a Page

If you directly navigate to the homepage of your website, you will be presented with a “This topic does not exist yet” message. So let us first create a start page.

Edit DokuWiki Page

All you have to do once you see the above message is to mouse hover on the icons that you see on the page, near the side bar. Click on the first pen icon that says “Create this Page” and you will be instantly switched on to an editor mode.

Type in your content and hit the save button. That’s it you have successfully created a DokuWiki Page.

DokuWiki Syntax

Understand DokuWiki Syntax [http://localhost/dokuwiki/doku.php?id=wiki:syntax], which could help you to easily draft and style your documents.

Configuration Manager

You need to login using your super user credentials in order to access the Configuration Manager Section. This is where you can configure some of the important parts in your website.

DokuWiki Templates

The look and feel of DokuWiki can be customized using templates. Navigate to the template section of official DokuWiki website to see the list of templates that are available.

Let’s quickly see how to install DokuWiki Templates.

  • Download the .TGZ template file. For example, I downloaded arctic-stable.tgz file.
  • Extract and move the template file folder to the below folder path:

C:\xampp\htdocs\dokuwiki\lib\tpl\arctic

DokuWiki Templates

  • Refresh your Configuration Manager page and change the template that you have installed.

Some of the other important changes that you can perform via Configuration Manager are:

  • Change Site Title, Language, License, Breadcrumbs, etc.
  • Authentication and anti-spam related settings.
  • Media, RSS and Network related settings.
So was the article easier to follow? Struck somewhere, do drop your queries in the comments. Found it useful? would appreciate if you could share it with your circle.