Have you ever wanted to launch a cool wiki website like WikiPedia? Well, in this tech era you can do it pretty easily. In this tutorial, I will show you how to create wiki website using DokuWiki.
Table of Contents
What is DocuWiki?
When we create a blog we use WordPress CMS. Similarly, When we want to create wiki we can use DocuWiki. DocuWiki is a simple to use, open source wiki software. Unlike WordPress, DocuWiki does not require any database. Because of its simplicity and Wikipedia-like feel, DokuWiki is a popular choice and has many advantages over similar software.
How to Install DocuWiki?
DokuWiki doesn’t require a database so you can run it even on the small server. We recommend DigitalOcean VPS for small to medium DocuWiki website.
Let’s get started to install DokuWiki on your VPS. For this tutorial, we’ll use an Ubuntu 16.04 VPS on DigitalOcean.
Connect to Server
If you are on Linux or Mac open terminal and run following command to connect your vps server. Use your username and server ip address.
If you are on windows use PuTTY SSH Client to connect to your server.
Once you’ve logged in, we’ll need to make sure everything is updated to latest version. Run following commands in ssh.
sudo apt-get update sudo apt-get upgrade
You’ll need to hit Y to proceed each time it asks.
Install Apache and PHP
Run the following command to install apache webserver and PHP5
sudo apt-get install apache2 libapache2-mod-php5
The following command will enable the Apache Rewrite Module
sudo a2enmod rewrite
Now restart apache server
sudo service apache2 restart
Now go to /var/www by typing
Download DokuWiki uging following command
sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
Extract the Files
sudo tar xvf dokuwiki-stable.tgz
Now move files to /var/www
sudo mv dokuwiki-*/* /var/www
Fix File Ownership Privileges
Change File Ownership Privileges
sudo chown -R www-data:www-data /var/www
Setup Email Server
To send email from the DokuWiki you must have email server software is installed on your server. PostFix is the best way to do this.
Complete the Installation
Now visit your website url to complete the installation
Follow the on-screen instructions to complete the installation.
Remove install.php file by executing the following command into SSH
sudo rm /var/www/install.php
You’re all set! Open up your web browser again and enjoy your new Wiki app by DokuWiki.