=====Dokuwiki=====
====Installation====
Installation is easy assuming you have internet access
Install
apt-get install dokuwiki
Verify package information
dpkg -l dokuwiki
Check files installed with it
dpkg -L dokuwiki
====Configuration====
By default Dokuwiki is only enabled for the localhost
so need to:
sudo nano /etc/apache2/conf.d/dokuwiki.conf
Options +FollowSymLinks
AllowOverride All
order allow,deny
**allow from 127.0.0.1**
need to change last line to
**allow from all**
then
/etc/init.d/apache2 restart
your wiki should now be readable
====Initial =Config=====
To redo initial config in case it was skipped
chown -R www-data /usr/share/dokuwiki/conf/
need to delete the 2 ACL related files
rm /usr/share/dokuwiki/conf/users.auth.php
rm /usr/share/dokuwiki/conf/acl.auth.php
Then need to edit the install php to ensure it starts up again. By default it only starts on black installs of dokuwiki
vi /usr/share/dokuwiki/install.php
find the following bit
// main dokuwiki config file (conf/dokuwiki.php) must not have been modified
$installation_hash = md5(preg_replace("/(\015\012)|(\015)/","\012",
@file_get_contents(DOKU_CONF.'dokuwiki.php')));
if (!in_array($installation_hash, $dokuwiki_hash)) {
$error[] = sprintf($lang['i_badhash'],$installation_hash);
$ok = false;
}
and change the last line to
$ok = true;
then go to
http://localhost/dokuwiki/install.php
that will re-enable the initial config prompts