DokuWiki

From Alpine Linux
Jump to: navigation, search

DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind.

Install lighttpd and PHP

Install the additional packages:

apk add lighttpd php5-common php5-iconv php5-json php5-gd php5-curl php5-xml php5-pgsql php5-imap php5-cgi fcgi

apk add php5-pdo php5-pdo_pgsql php5-soap php5-xmlrpc php5-posix php5-mcrypt php5-gettext php5-ldap php5-ctype php5-dom

Configure Lighttpd

vi /etc/lighttpd/lighttpd.conf

Uncomment line:

include "mod_fastcgi.conf"

Start lighttpd service and add to needed runlevel

rc-service lighttpd start && rc-update add lighttpd default

Installing DokuWiki

Create a folder named webapps

mkdir -p /usr/share/webapps/

Download the source code archive

cd /usr/share/webapps/ wget wget http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2012-10-13.tgz

Unpack and delete tar file

tar zxvf dokuwiki-2012-10-13.tgz rm dokuwiki-2012-10-13.tgz

Change the folder permissions

chmod -R 777 /usr/share/webapps/dokuwiki/

Create a symlink to the dokuwiki folder

ln -s /usr/share/webapps/dokuwiki/ /var/www/localhost/htdocs/dokuwiki

Browse to http://WEB_IP_ADDRESS/dokuwiki