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.

Contents

Install lighttpd and PHP

Install the additional packages:

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

apk add php-pdo php-pdo_pgsql php-soap php-xmlrpc php-posix php-mcrypt php-gettext php-ldap php-ctype php-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