DokuWiki, how to install this application on Ubuntu 20.04

About DokuWiki

In the next article we will take a look at how we can install DocuWiki on Ubuntu 20.04. This is a popular, open source application written in PHP. It will allow us to create our own websites, simply by loading our content in the application.

Its syntax is similar to that of MediaWiki, although unlike this software, the information is stored in plain text files, so it does not require the use of a database. DokuWiki comes with all the necessary features to create a website along with SEO, authentication, and much more. You simply have to follow the following steps that are going to be shown below, for a simple installation in Ubuntu 20.04.

DokuWiki is a very versatile and easy to use open source wiki software. It is loved by users thanks to its clean and readable syntax. The ease of maintenance, backup and integration makes it a favorite with administrators. Built-in access controls and authentication connectors make DokuWiki especially useful in the business context. Further, the large number of plugins contributed by its community enables a wide range of use cases, beyond a traditional wiki.

General features of DokuWiki

  • Use a simple syntax.
  • It allows unlimited page reviews.
  • It has colored difference support and by parts.
  • Upload and embed images and other types of multimedia files.
  • Content can be categorized easily.
  • Editing sections allows edit small parts of the page.
  • The toolbar and keyboard shortcuts they make editing a lot easier.
  • Count with one spelling checker.
  • Generate a Table of Contents automatically.
  • Offers a lock to avoid editing conflicts.
  • We can also use access control lists and spam blacklists.
  • Encrypted mail and support for rel = nofollow.
  • It has support for more than 50 languages ​​and UTF-8.
  • Optionally, it offers automatic links to other English-speaking wikis.
  • Quick search, based on text indexes.
  • Page cache for faster rendering.
  • AJAX-based interface.
  • Customizable design via templates.
  • Original features can be extended with plugins.
  • Availability of support from the community if you ever need help.
  • No database required, everything is saved in text files.
  • It is Open Source, in addition to being a well documented project.

These are just some of the features of this program. Can be consult all of them in detail from the project website.

Install DokuWiki on Ubuntu 20.04

First we will update our system to have the latest packages installed. We can do this by opening a terminal (Ctrl + Alt + T) and using the commands in it:

sudo apt update; sudo apt upgrade

Install Apache and PHP

The next thing we will need to do is install apache and PHP together with their extensions. We just need to open a terminal (Ctrl + Alt + T) and write in it:

install apache2 and php

sudo apt install apache2 php php-gd php-xml php-json

After installing the above packages, we will start apache with the commands:

start apache2

sudo systemctl start apache2

sudo systemctl enable apache2

to download

For get the latest version of DokuWiki, we can use wget in the terminal (Ctrl + Alt + T) as follows:

download docuwiki


Once the download is complete, we will create a folder called dokuwiki in the following path:

sudo mkdir /var/www/html/dokuwiki

In this folder we will extract the previously downloaded package. We will do this with the command:

sudo tar -xvzf dokuwiki-stable.tgz -C /var/www/html/dokuwiki/ --strip-components=1

The next thing we will do is copy the sample .htaccess file running:

sudo cp /var/www/html/dokuwiki/.htaccess{.dist,}

And finally we will give the appropriate permissions to the dokuwiki directory.

sudo chown -R www-data:www-data /var/www/html/dokuwiki


At this point we can access DokuWiki in Ubuntu 20.04 by typing https: //yourcominio/install.php. For this example I will use localhost / dokuwiki / install.php. This will show us the installation page.

DokuWiki installation page

We will have to complete the required fields (between these data we will write the username and password to log in) and finally press the ‘buttonsave‘. This will redirect us to a screen like the one below.

visit your new wiki

Yes click on ‘Visit your new dokuwiki’, we will see a page like the following.

local wiki

On this screen, if we do click ‘Connect’, we will be redirected to the login page.

login dokuwiki

Here we will have to write the username and password that we selected in the first step, to log in. This will take us to the DokuWiki panel.

Docuwiki logged in

This is how DokuWiki can be installed locally on Ubuntu 20.04. For more information on how to use DokuWiki, users can use the project website.

Add Comment