Table of Contents

Dokuwiki Startup Guide

install and setup 2021

  1. install dokuwiki web app
  2. initial setup
    1. disable register: login wiki with your Admin > Configuration Manager: find “Register”, check the box for “Disable Dokuwiki actions”
    2. delete all default page: in sitemap, go each default page and empty the page content to delete
    3. set wiki site wide permission: admin page > Access Control List Management
      * @ALL Read (change from default upload to Read to prevent spam)
      * @user Create (allow other reg user to create page)
      * userA Delete (allow some power user to delete page)
      categoryNameSpace:* @ALL None (to limit public access on some sub folder content)
      categoryNameSpace:* @user Upload (free reg user to access sub folder content)

Customize

hide sitemap index from non-login user

start page customize

change wiki page width

change “doku.php” in URL (you need repeat steps if you update dokuwiki)

  1. (updated 2021)
  2. copy the file “wiki/doku.php” into “wiki/newName.php” (such as “page.php”; but can not be “index.php”, as it is reserved for default)
  3. edit wiki/index.php, replace all “doku.php” with “newName.php”
  4. create wiki/inc/preload.php
    <?php
    if(!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT','newName.php');
  5. for link in some page that still link to doku.php, you may need to edit that page and update the page cache

change wiki URL format

change 2013 or later DokuWiki homepage logo (further if you want to change the favicon)

DokuWiki Favicon

change 2013 or later DokuWiki theme, top “Media Manager” link for non-user (repeat after each update)

DokuWiki plugins

DokuWiki Templates Install

  1. go Admin > Extension Manager: Search and Install tab, search the theme you want to install.
  2. then, go to admin > Configuration Manager, Basic: Template to choose the installed template

Dokuwiki operation life-cycle maintain guide

compare to other wiki

install and setup

  1. download dokuwiki at: http://www.dokuwiki.org/dokuwiki
  2. extract the file structure to your Website Wiki folder
  3. start your web server, and browser to the “install.php” in wiki folder; (for me, no permission problem by guide)
  4. Then, create users,
    1. login wiki with your Admin account, click “Admin” button at the right bottom corner;
    2. then, click “User Manager”, create other user for writing and admining in Group of “user” or “admin”
  5. Then, authorize user rights
    1. click “admin” button at the bottom after login as admin
    2. click “Access Control List Management” to define page or namespace (directory) level control
  6. Create page
    1. create page by a internal link: [[techwiki:macfix|Mac Fix tech page]]
    2. create page by entering a new URL: http://mysite/wiki/doku.php?id=techwiki:macfix
  7. delete page
    1. delete page by empty the content of that page
  8. insert media like image and video
    1. use the toolbar in page editing panel

maintain

backup

move to new server

Update and Install Plugin

Google Analytics Plugin

Google Side

  1. go: analytics.google.com
  2. login google
  3. create track account
    • choose info sharing or not
    • choose web to monitor
    • enter site name and info
    • get the tracking id

dokuwiki side:

  1. dokuwiki admin page > extension: install https://www.dokuwiki.org/plugin:googletagmanager
  2. dokuwiki admin page: google analytics plugin link
    • add its referred code into head section of: wiki/lib/tpl/your_current_doku_template_folder/main.php
    • note: some of template already have google analytics feature built-in, you may like to check config page to see
    • then, back to dokuwiki admin config page: plugin: google analytics, put tracking id there

Problem and Solution

Dokuwiki Upload Image Failed

Wiki Folder Permission and Security

dokuwiki config can't be saved problem

old dokuwiki php 7.4 above error

Basic Syntax

more syntax at http://www.dokuwiki.org/syntax
edit bar at http://www.dokuwiki.org/toolbar
page creation at http://www.dokuwiki.org/page
comparison of wiki http://www.wikimatrix.org/compare/DokuWiki+PmWiki+WikkaWiki

Text Format and Color

no way but plugin

Photo and Image

name then size

{{wiki:dokuwiki-128.png?20x50}}

List

"2 spaces followed by * or -" at line start will create unordered or ordered list;
“2 extra spaces” in front will indent it to sub-level.

New Line & Escape container

There are 4 ways to create a line break, or a blank line.

Separator Line


Code Format

type "<code language> content </code>" to create code like block

Plain code text here


type "<file language fileName.txt> content </file>" to create downloadable code

fileName.txt
Plain code text here

Supported:
4cs, abap, actionscript-french, actionscript, actionscript3, ada, apache, applescript, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, ecmascript, eiffel, email, erlang, fo, fortran, freebasic, fsharp, gambas, genero, genie, gdb, glsl, gml, gnuplot, groovy, gettext, gwbasic, haskell, hicest, hq9plus, html, icon, idl, ini, inno, intercal, io, j, java5, java, javascript, jquery, kixtart, klonec, klonecpp, latex, lisp, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, modula2, modula3, mmix, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, ocaml-brief, ocaml, oobas, oracle8, oracle11, oxygene, oz, pascal, pcre, perl, perl6, per, pf, php-brief, php, pike, pic16, pixelbender, plsql, postgresql, povray, powerbuilder, powershell, progress, prolog, properties, providex, purebasic, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, vala, vbnet, vb, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, whois, xbasic, xml, xorg_conf, xpp, z80

special page

Dokuwiki user group setup and security control

Method:

  1. use dokuwiki admin page control
  2. use text config of dokuwiki: official guide

DokuWiki Theme and Customize

Bootstrap3 template for Dokuwiki