DokuWiki on Redbrick

From Redbrick Wiki
Revision as of 11:49, 3 October 2006 by Cammy (talk | contribs) (First draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DokuWiki is a nice and simple wiki that is relatively easy to install in your Redbrick account/webspace. To make things more interesting, you can integrate the login (and template) with your Wordpress blog software (if you use it on Redbrick).

You just need to follow the normal instructions to install it. However, because it's a PHP application, it won't run out of the box. You need to add '#!/usr/local/bin/php' to the beginning of any PHP file that is executed directly.

As of version 2006-03-09d, the files to modify are:

doku.php
feed.php
index.php
lib/exe/ajax.php
lib/exe/css.php
lib/exe/detail.php
lib/exe/fetch.php
lib/exe/indexer.php
lib/exe/js.php
lib/exe/media.php
lib/exe/spellcheck.php

If your really lazy, heres a command to do it automatically. Run it directly from where you installed DokuWiki:

perl -i.bak -ple 'print "#!/usr/local/bin/php" if $. eq 1; close ARGV if eof;' doku.php feed.php index.php lib/exe/ajax.php lib/exe/css.php lib/exe/detail.php lib/exe/fetch.php lib/exe/indexer.php lib/exe/js.php lib/exe/media.php lib/exe/spellcheck.php

You can then configure it, as per the DokuWiki instructions anyway you like. However it should be noted that 'aspell' is currently not installed on 'deathray' and therefore the spellchecker will not work. Also, unlike Wordpress, DokuWiki has built in support for running behind a proxy. To enable the proxy, you need to configure it in 'conf/local.php' with these lines:

$conf['proxy']['host'] = "proxy.dcu.ie";
$conf['proxy']['port'] = "8080";