How To Install DokuWiki on CentOS 8

Install DokuWiki on CentOS 8

In this tutorial we will show you how to install Dokuwiki on CentOS 8. For those of you who didn’t know, DokuWiki is an open source software written in PHP that allows users to create and edit pages using a web browser. It works on plain texts and requires no database. Using a very familiar interface, it allows you to easily scale and optimize using many advanced features.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation DokuWiki on a CentOS 8 server.

Install DokuWiki on CentOS 8

Step 1. First of all make sure that all packages are up to date.

Step 2. Installing LAMP Stack.

If you don’t have a LAMP stack already installed on your server, you can follow our guide here. Also install required PHP modules, run the command below to install other required PHP extensions for DokuWiki:

Step 3. Installing Dokuwiki on CentOS 8.

Now, we go to DokuWiki download’s page and grab the latest release version. You can simply run the command below to download the current stable release version of DokuWiki:

Once the download is complete, run the command below to extract DokuWiki:

We will need to change some folders permissions:

Step 4. Configuring Apache for DokuWiki.

We will create Apache virtual host for your DokuWiki website. Now we create the following Apache configuration file:

Save and close the file. Restart the Apache service for the changes to take effects:

Step 5. Configure Firewall.

To remotely allow HTTP traffic to the DokuWiki server, you need to open port 80 on firewall. Otherwise, for HTTPS, open port 443:

Step 6. Accessing DokuWiki.

DokuWiki will be available on HTTP port 80 by default. Open your favorite browser and navigate to or http://your-server-ip-address/install.php and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Dokuwiki. Thanks for using this tutorial for installing Dokuwiki on your CentOS 8 system. For additional help or useful information, we recommend you to check the official Dokuwiki website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!