ArticleslgStudy

computer science

DokuWiki

DokuWiki is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DokuWiki rather than just read about it. In short: DokuWiki is an open source wiki application, licensed under GPLv2 and written in the PHP programming language. It works on plain text files and thus does not need a database.

DokuWiki — main illustration
DokuWiki — illustration

Key takeaways

  • DokuWiki belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DokuWiki to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DokuWiki from memory before moving on to harder problems.

Reference excerpt

DokuWiki is an open source wiki application, licensed under GPLv2 and written in the PHP programming language. It works on plain text files and thus does not need a database. It has a syntax similar to the one used by MediaWiki, and is often recommended as a more lightweight, easier to customize alternative. The 'Doku' in DokuWiki is short for Dokumentation (documentation in German). It can be installed on local PCs, flash drives, and folders synced with file hosting services or file synchronization programs such as Dropbox or Syncthing.

History DokuWiki was created by Andreas Gohr in June 2004. In July, the first official release was published on Freshmeat (now known as Freecode). Originally, DokuWiki used a simple list of regular expressions to transform wiki syntax into HTML. A big step forward in the development was the re-design of the parser and the renderer mechanisms based on contributions by Harry Fuecks in January 2005. The new design made use of the then-new object-oriented features of PHP4. The new parser and the introduction of a cache mechanism led to significant performance improvements, thus making DokuWiki usable for larger projects. The new parser also prepared DokuWiki for the introduction of a generic plugin interface which simplified the development and maintenance of syntax-based plugins. Over the years, additional plugin mechanisms followed which allowed third-party developers to extend nearly all aspects of the wiki software. The introduction of DokuWiki into the Debian and Gentoo Linux distributions in April and July 2005, respectively, significantly increased the visibility of the software. The DokuWiki logo is the result of a design contest. The winning logo, designed by Esther Brunner, represents editing pages (by pencils of different colors, i.e. different people) and linking them. For many years, DokuWiki's source code was managed through the Darcs distributed version control system. In 2010 a switch to Git was made, making use of GitHub for hosting. Today, DokuWiki is one of the most widely used wiki engines available and has achieved significant usage with stable interest over time.

Release history

Since 2011, releases are named after Discworld characters.

Main features Installation and Requirements DokuWiki requires only a webserver and PHP; no database is needed. It can run on cheap web hosting servers and is usually installed by simply unpacking. Additional plugins may have additional requirements. Revision control DokuWiki stores all versions of each wiki page, allowing the user to compare the current version with any older version. The difference engine is the same as the one used in MediaWiki. Parallel editing of one page by multiple users is prevented by a locking mechanism. Access control Access control can be handled by a user manager, which allows users and groups of users to be defined, and an access control list in which an administrator user can define permissions on page and namespace level, giving DokuWiki more fine-grained control than Mediawiki. Besides the built-in user management, DokuWiki also provides mechanisms for authentication against databases, LDAP Servers and Active Directory. Other authentication mechanisms are available as plugins. Plugins DokuWiki has a generic plugin interface which simplifies the process of writing and maintaining plugins. There are ≈1000 plugins available. These can be easily integrated and managed by an administrator user with the help of the plugin manager. Templates The appearance of the wiki can be defined by a template. There are various templates provided by the development community. Internationalization and localization DokuWiki supports Unicode (UTF-8) and properly handles right-to-left languages, so languages such as Chinese, Thai, and Hebrew can be displayed. DokuWiki can be configured in about 70 languages. Multilingual wikis can be configured through plugins. Users can contribute translations of the DokuWiki software and of plugins through a web interface. Caching DokuWiki uses a two-level cache mechanism which stores the parsed wiki page in an intermediate serialized format which is then rendered to the desired output format, such as HTML5. This rendered format is cached again. The two levels of caching expire on different conditions. The caching helps to reduce server load and speeds up access to the information. Full text search DokuWiki has an integrated indexed search with which a user can search for keywords and phrases on the wiki. Wiki markup DokuWiki uses a simple markup language similar to that of MediaWiki. Like MediaWiki, it makes use of free links, but CamelCase links can optionally be enabled. WYSIWYG editors are available as plugins.

DokuWiki based software projects Some independent software projects based on DokuWiki have been created. These projects usually bundle the DokuWiki software, select plugins, a customized design and sometimes pre-built content for specialized use cases.

The EinsatzleiterWiki is a German project, bundling fire fighting knowledge in a package that can be installed in fire departments and then be customized to the needs of the specific department. The wiki is used by the professional fire services of Berlin, Kaiserslautern, Wuppertal and many voluntary fire services in Germany. open|SchulPortfolio is a German project aimed at the internal management of schools. It has been created with input from the ministry of education of the German state of Baden-Württemberg. ICKEWiki is a redistribution of DokuWiki with a focus on the use in enterprises. It was originally developed in a research project focusing on adding structured data to wikis and making it more usable in industrial production companies. As required by DokuWiki's license these projects are all licensed under the GPL version 2.

See also

List of wiki software Comparison of wiki software

References

Further reading Hentzen, Whil; Roche, Ted; Gnacinski, Todd (2018). DokuWiki: A Wiki For Software Developers. Hentzenwerke Publishing. p. 206. ISBN 978-1930919167. Gerner, Jason; Naramore, Elisabeth; Owens, Morgan L.; Warden, Matt (2006). Professional Lamp : Linux, Apache, MySQL, and PHP Web development. Wrox. Wiley. p. 326. ISBN 9780764597237. OCLC 1152984845.

External links

Official website

Illustrations

DokuWiki illustration
DokuWiki illustration

Worked examples

Example 1 — a first encounter with DokuWiki

Start with the simplest possible case. Write down what DokuWiki claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DokuWiki before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DokuWiki ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DokuWiki

In research
DokuWiki appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DokuWiki in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DokuWiki is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free wiki software, Technical communication tools, so understanding it makes those chapters shorter.
In everyday life
Look for DokuWiki outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DokuWiki” →

How to study DokuWiki in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DokuWiki means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DokuWiki out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DokuWiki in simple terms?

DokuWiki is an open source wiki application, licensed under GPLv2 and written in the PHP programming language. It works on plain text files and thus does not need a database.

Why does DokuWiki matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DokuWiki?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DokuWiki.

Tags

  • Free wiki software
  • Technical communication tools

Keep exploring