Dokuwiki

Installation

Dokuwiki was installed as an Optware package. The following packages have been installed in the given order (but I think the order is not relevant). Precondition: Optware is installed. How-To do this

  1. dokuwiki
  2. php <= I don't know if this package is really necessary, perhaps someone can test it
  3. php-fcgi
  4. libiconv

I tried to call dokuwiki after each installation step. Ok, it doesn't run, so I went to the next step.

Modifications in /etc/lighttpd/lighttpd.conf

The following parts have been changed:

old new
index-file.names = ( "nasMaster.pl" ) index-file.names = ( "nasMaster.pl", "index.html", "index.php" )
fastcgi.server = ( ".pl" =>
(( "socket" => "/tmp/lighttpd.fcgi.socket",
"bin-path" => "/usr/www/lib/nasMaster.pl",
"check-local" => "disable",
"min-procs" => 1,
"max-procs" => 1,
"idle-timeout" => 30,
"bin-environment" => (
# Environment variables for nasMaster.pl
"PERL5LIB" => "/usr/www/lib",
"NAS_NBIN" => "/usr/www/nbin",
),
)),
"nasMaster.pl" => (( "socket" => "/tmp/lighttpd.fcgi.socket",
"check-local" => "disable",
))
)



fastcgi.server = ( ".pl" =>
(( "socket" => "/tmp/lighttpd.fcgi.socket",
"bin-path" => "/usr/www/lib/nasMaster.pl",
"check-local" => "disable",
"min-procs" => 1,
"max-procs" => 1,
"idle-timeout" => 30,
"bin-environment" => (
# Environment variables for nasMaster.pl
"PERL5LIB" => "/usr/www/lib",
"NAS_NBIN" => "/usr/www/nbin",
),
)),
"nasMaster.pl" => (( "socket" => "/tmp/lighttpd.fcgi.socket",
"check-local" => "disable",
)),
".php" => (( "bin-path" => "/opt/bin/php-fcgi",
"socket" => "/tmp/php.socket",
))
)

Create a link for Dokuwiki

To be able to call Dokuwiki a symbolic link wiki to /opt/share/www/dokuwiki was created in /usr/www/lib.

Preconditions:

  1. current user is root
  2. current working directory is /usr/www/lib

then call

ln -s /opt/share/www/dokuwiki wiki

Now Dokuwiki could be called with http://MyBookWorld/wiki from my browser.

Some problems

Modifications in /opt/share/www/dokuwiki/lib/exe/spellcheck.php

Since Dokuwiki constantly complained about a missing patch, this was inserted (details).

old new
function spell_utf8test(){
print $_POST['data'];
}
function spell_utf8test(){
print substr($_POST['data'],0,3);
}

Permissions

When calling http://MyBookWorld/wiki/install.php it told me that write permissions of some files and directories are not set correctly. I set them with

chmod 766 name

But for some directories that was not enough. For those I had to change owner and group too. I used

chown www-data name
chgrp www-data name

Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License