DokuWiki is a wiki application licensed under GPLv2 and written in the PHP programming language. It works on plain text files and thus does not need a database. Its syntax is similar to the one used by MediaWiki. It was created by Andreas Gohr in June 2004. In July the first official release was published on Freshmeat (now known as Freecode). A big step in the development was the re-design of the parser and the renderer in January 2005. The new design was a big performance improvement and made DokuWiki usable for bigger documentation projects. It also prepared DokuWiki for an introduction of a generic plugin interface which simplified the development and maintenance of add-ons. A push of the level of awareness was the introduction of DokuWiki in the Linux distributions Debian in April and Gentoo Linux in July 2005. Since 2005, it has achieved significant usage. For more information please visit the DokuWiki Information page containing links to downloads and documentation.
1.) Update System.
As always you should make sure that the first thing you do when installing any software, is to make sure that your current software is up to date.
$ sudo apt-get update && sudo apt-get upgrade
2.) Install Dependencies.
We need to first install a few things along side the apache server, in fact we will be setting up a LAP server for running this wiki on the local network.
$ sudo apt-get install apache2 php7.0 php7.0-xml libapache2-mod-php7.0 php7.0-common gcc php-imagick imagemagick php-mbstring
3.) Accept Packages.
You will see a list of the necessary files that are required to install the dependencies, type ‘y’ and press Enter to continue.
4.) Enable Rewrite.
Dokuwiki requires the rewrite mod for Apache to be enabled.
$ sudo a2enmod rewrite
5.) Modify Apache Config.
We need to add a few lines to the default web config file, open it with nano with this command.
$ sudo nano /etc/apache2/sites-available/000-default.conf
6.) Additional Settings.
Dokuwiki also requires a few modifications, locate the line with ‘DocumentRoot /var/www/html’ in the Apache default config file and paste the below code just under it like so.
<Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/html/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory>
Use (CTRL+o) to save (CTRL+x) to exit nano.
7.) Restart Apache.
For all the new changes to take effect we need to restart the Apache web server.
$ sudo service apache2 restart
Man…amazing, thanks a lot, the best tutorial,o wanna save it offline….i tried 2 days anothers tutorial…
LikeLiked by 1 person