DokuWiki Installer


This page assists in the first time installation and configuration of Dokuwiki. More info on this installer is available on it's own documentation page.

DokuWiki uses ordinary files for the storage of wiki pages and other information associated with those pages (e.g. images, search indexes, old revisions, etc). In order to operate successfully DokuWiki must have write access to the directories that hold those files. This installer is not capable of setting up directory permissions. That normally needs to be done directly on a command shell or if you are using hosting, through FTP or your hosting control panel (e.g. cPanel).

This installer will setup your DokuWiki configuration for ACL, which in turn allows administrator login and access to DokuWiki's admin menu for installing plugins, managing users, managing access to wiki pages and alteration of configuration settings. It isn't required for DokuWiki to operate, however it will make Dokuwiki easier to administer.

Experienced users or users with special setup requirements should use these links for details concerning installation instructions and configuration settings.

For security reasons this script will only work with a new and unmodified Dokuwiki installation. You should either re-extract the files from the downloaded package or consult the complete Dokuwiki installation instructions

driven by DokuWiki powered by PHP
Working with DocBook Manuals [Mantis Bug Tracker Wiki]

User Tools

Site Tools


Working with DocBook Manuals

Required Tools

No special tools are needed to edit DocBook files, a plain-text editor is good enough to do the job, although a specialized XML editor may be useful.

In order to build the manuals however, you need to have a working DocBook tool chain installed on your system.

MantisBT 1.3 and later

MantisBT 1.3 uses Publican to build the documentation. All necessary tools can be installed with the following command, which takes care of dependencies.

$ sudo apt-get install publican

This was tested successfully on Ubuntu 14.04 LTS, but should work with older versions too.

MantisBT 1.2

To build MantisBT 1.2 documentation, this tool chain includes GNU Make, OpenJade, and various DocBook tools.

The command below installs the toolchain on Ubuntu-based systems (tested successfully on Ubuntu 12.04 LTS and 13.04 desktop)

$ sudo apt-get install docbook docbook-dsssl docbook-slides docbook-utils linuxdoc-tools make openjade xmlto

For Debian-based Linux distributions, simply install the necessary packages with the following command:

$ sudo aptitude install docbook docbook-dsssl docbook-slides docbook-utils linuxdoc-tools make openjade xmlto

For Fedora-based distros, run this command instead:

$ su -c 'yum groupinstall "Authoring and Publishing"'

Building a DocBook Manual

MantisBT 1.3 and later

GNU Make files are present in each DocBook's directory, allowing easy build with a single command.

To build all DocBooks in default html-desktop format

cd /path/to/mantisbt/docbook

To process a specific DocBook, first go to the corresponding directory, e.g. for Administrator's Guide

cd /path/to/mantisbt/docbook/Admin_Guide

then execute the appropriate command:

  • Build it in default (html-desktop) format
  • Validate the XML files, without building the DocBook
    make test
  • Build a PDF
    make pdf
  • Clean build in all available formats
    make clean all

This is just a few examples, refer to the Makefile's documentation for further details.

It is also possible to manually execute Publican, e.g.

publican build --langs=en-US --formats=html-desktop,pdf

MantisBT 1.2

We will use the Developer's Guide in English as the example manual for this process, which is in the developers/en/ directory. You can substitute any other manual or language, assuming the manual exists and has been translated to that language.

Enter the directory containing the preferred manual:

  $ cd /path/to/mantisbt/docbook/adminguide/en

Run make with a list of resulting file types that you want to build. Currently, our DocBook manuals can produce PDF, HTML (split or single page), RTF, Postscript, or plain-text manuals. All resulting manual files will be placed in the build/ subdirectory. In this example, we will build both a PDF and a split HTML manual:

  $ make pdf html
  $ ls -R build/
  developers  developers.pdf

  dev.database.html          dev.eventref.html  dev.plugins.html  index.html
  dev.database.install.html    images            LEGAL.html

For installing manuals into a specific location, such as for building manuals on web servers, first clean and build the desired DocBook manuals, and then run the install routine with the necessary install path:

  $ make clean
  $ make pdf html
  $ make INSTALL_DIR=/path/to/install install

- or for cron jobs (order matters):

  $ make INSTALL_DIR=/path/to/install clean pdf html install

Simple Build Script

Taking it one step further, there is a Python script in trunk/dev/ named that takes the following set of arguments to automate the update/build process from an SVN checkout:

  $ <mantisbt/docbook> <destination_path> [<lang> ...]

The last parameter is optional, and can be a space-separated list of docbook languages to build. The results are put into the destination directory in the form of <lang>/<manual>. An example command and resulting hierarchy:

  $ /home/user/mantisbt/trunk/dev/ /home/user/mantisbt/trunk/docbook /var/www/mantis en de
  $ tree /var/www/mantis
  -- en
  ---- administration_guide
  ---- developers
  -- de
  ---- administration_guide
  ---- developers
mantisbt/docbook.txt · Last modified: 2016/07/03 11:26 by dregad