How to install DoKuwiki in Ubuntu
Installation of Dokuwiki in Ubuntu
DokuWiki is an open source, simple wiki software that doesn' t require any database. It is well known for its clean and readable syntax. Its built in access controls and authentication connectors support makes dokuWiki useful in the enterprise context. Installation of Dokuwikiis explained in this manual.
To install Dokuwiki
Before starting with the installation of dokuwiki, install the dependency packages such as Apache2 and PHP.
For Ubuntu 14.04 install libapache2-mod-php5
root@linuxhelp:/home/user1# apt-get install -y apache2 libapache2-mod-php7.0 php7.0-xml
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 php-common php7.0-cli
php7.0-common php7.0-json php7.0-opcache php7.0-readline
.
.
.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.2) ...
Download and then extract the latest stable release of dokuwiki.
root@linuxhelp:/home/user1# cd /var/www/
root@linuxhelp:/var/www# wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
--2016-08-22 11:03:05-- http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
Resolving download.dokuwiki.org (download.dokuwiki.org)... 138.201.137.132, 2a01:4f8:172:3483::2
Connecting to download.dokuwiki.org (download.dokuwiki.org)|138.201.137.132|:80... connected.
.
.
.
dokuwiki-stable.tgz 100%[=========================================================> ] 3.30M 209KB/s in 24s
2016-08-22 11:03:30 (144 KB/s) - ‘ dokuwiki-stable.tgz’ saved [3464161/3464161]
root@linuxhelp:/var/www# tar -xvf dokuwiki-stable.tgz
dokuwiki-2016-06-26a/
dokuwiki-2016-06-26a/index.php
dokuwiki-2016-06-26a/inc/
dokuwiki-2016-06-26a/inc/subscription.php
dokuwiki-2016-06-26a/inc/pageutils.php
dokuwiki-2016-06-26a/inc/confutils.php
.
.
.
dokuwiki-2016-06-26a/data/locks/_dummy
dokuwiki-2016-06-26a/data/attic/
dokuwiki-2016-06-26a/data/attic/_dummy
dokuwiki-2016-06-26a/data/index/
dokuwiki-2016-06-26a/data/index/_dummy
Now list and check the extracted directories.
root@linuxhelp:/var/www# ls -l
total 3400
drwxr-xr-x 4 root root 4096 Aug 22 11:03 ./
drwxr-xr-x 15 root root 4096 Aug 22 10:59 ../
drwxrwxr-x 8 root root 4096 Jul 3 21:38 dokuwiki-2016-06-26a/
-rw-r--r-- 1 root root 3464161 Jul 3 21:44 dokuwiki-stable.tgz
drwxr-xr-x 2 root root 4096 Aug 22 11:00 html/
Rename the extracted directory and alter the user & group ownership as www-data.
root@linuxhelp:/var/www# mv dokuwiki-*/ dokuwiki
root@linuxhelp:/var/www# chown -R www-data:www-data /var/www/dokuwiki
root@linuxhelp:/var/www# ls -l
total 3400
drwxr-xr-x 4 root root 4096 Aug 22 11:04 ./
drwxr-xr-x 15 root root 4096 Aug 22 10:59 ../
drwxrwxr-x 8 www-data www-data 4096 Jul 3 21:38 dokuwiki/
-rw-r--r-- 1 root root 3464161 Jul 3 21:44 dokuwiki-stable.tgz
drwxr-xr-x 2 root root 4096 Aug 22 11:00 html/
Enable apache rewrite module by using the following command.
root@linuxhelp:/var/www# a2enmod rewrite Enabling module rewrite. To activate the new configuration, you need to run: service apache2 restart root@linuxhelp:/var/www# service apache2 restart
Open the configuration file and replace DocumentRoot " /var/www/html” with DocumentRoot " /var/www/dokuwiki”
root@linuxhelp:/var/www# vim /etc/apache2/sites-enabled/000-default.conf
Allow Override setting in Apache2 to use " .htaccess" files for security as shown below.
root@linuxhelp:/var/www# vim /etc/apache2/apache2.conf
Restart the apache service, after completing all the configuration.
root@linuxhelp:/var/www# service apache2 restart
Open the browser and navigate to http://< IP_address> /install.php fill the necessary fields and click save to proceed further.
In the docuwiki installer screen, click “ your new dokuwiki” to proceed further.
Finally the dokuwiki, similar to Wikipedia page is now ready to use.
works on plain text files
simple syntax and easy editing with quickbuttons and accesskeys
SectionEditing allows you to edit small parts of a page
automatic generation of content tables
unlimited page revisions
colored diff support
support for read only pages
syndication of recent changes as RSS Feed
namespaces
In many cases you will also need to add the ~~NOCACHE~~ macro when using a plugin which changes the sidebar's appearance per page or namespace.
Either choose a template which already comes with a sidebar, see templates tagged with 'sidebar'. (There might be some which are missing the tag, so be sure to check out all of the templates.)
Or install a plugin which will add a sidebar to your template, see plugins tagged with 'sidebar'.
Using a template which includes a sidebar functionality is often a better choice, as that sidebar will already be optimized to fit into the template's design and layout.