DokuWiki, how to install this application on Ubuntu 20.04

About Doku Wiki

In the next article we are going to 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 will simply have to follow the following steps that will 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. What's more, 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.
  • Allows unlimited page reviews.
  • It has colored difference support and in 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 much 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 y 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 through templates.
  • Original features can be extended with plugins.
  • Availability of community support if you ever need help.
  • No database required, everything is saved in text files.
  • Is open source, in addition to being a well documented project.

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

Install DokuWiki on Ubuntu 20.04

First of all 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

Download

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

download docuwiki

wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

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,}

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

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

Log in

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

Si click on 'Visit your new dokuwiki', we will see a page like the following one.

local wiki

On this screen, if we do click on '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.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Rodo said

    I installed it and could never make an article. I don't know how it works nor did I want to read. I think that what is not intuitive runs the risk of uninstallation. I downloaded PmWiki and at first glance you can see how it works. When I retire and have time I will spend hours to see how it worked and only for the purposes of not thinking about the miserable pension.