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:
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:
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:
To remotely allow HTTP traffic to the DokuWiki server, you need to open port 80 on firewall. Otherwise, for HTTPS, open port 443:
DokuWiki will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com/install.php 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.