- Download the latest package from here and extract the .tgz file in your home directory:
tar -xzvf dokuwiki-yyyy-MM-DD.tgz
From here on we'll assume that the package was extracted into ~/dokuwiki. - Move the extracted directory to a desired location in the web space:
mv ~/dokuwiki ~/www/mywiki
From here on we'll assume that the directory was moved to ~/www/mywiki. - Set the permissions by giving global write access to the following directories (yes this isn't ideal but then you'll have to have the web admin set up the permissions for you):
chmod 0777 ~/www/mywiki/conf
chmod -R 0777 ~/www/mywiki/data - Run the installer script by loading the page http://servername
/mywiki/install.php. You may need to then change the permission of the file ~/dokuwiki/conf/local.php so that you can edit it in the proceeding steps: cp ~/dokuwiki/conf/local.php ~/dokuwiki/conf/local.php.cp
mv -f ~/dokuwiki/conf/local.php.cp ~/dokuwiki/conf/local.php
chmod 0666 ~/dokuwiki/conf/local.php - Perform the following steps to secure the install directories (details available here):
- Create a dokuwiki directory outside of the www directory (e.g. ~/dokuwiki).
- Move ~/www/mywiki/bin to ~/dokuwiki/bin.
- Move ~/www/mywiki/data to ~/dokuwiki/data.
- Add the following line to ~www/mywiki/conf/local.php:
$conf['savedir']='~/dokuwiki/data' - Move ~/www/mywiki/conf to ~/dokuwiki/conf.
- Create a file ~/dokuwiki/prepend.php containing the following lines:
<?php
define('DOKU_CONF','~/dokuwiki/conf/'); - Add the following line to ~www/mywiki/.htaccess:
php_value auto_prepend_file "~/dokuwiki/prepend.php" - Move ~/www/mywiki/inc to ~/dokuwiki/inc.
- Add the following line to ~/dokuwiki/prepend.php:
define('DOKU_INC','~/dokuwiki/'); - Move ~/www/mywiki/lib to ~/dokuwiki/lib.
- Create a symbolic link to the lib directory from the web directory:
ln -s ~/dokuwiki/lib ~/www/mywiki/lib - To enable installation of plugins, change the permission of the plugins directory:
chmod 077 ~/dokuwiki/lib/plugins - Go to http://servername/mywiki/, and log in as the administrator.
- Install the PageMove plugin by clicking on the Admin button in the lower right corner, and then the "Manage Plugins" link, and enter the following URL into the URL textbox and click Download:
http://www.isection.co.uk/lib/exe/fetch.php?id=start&cache=cache&media=pagemove.zip
Friday, February 9, 2007
Setting up DokuWiki
DocuWiki is a nice simple Wiki software that doesn't require a database and is fairly simple and light weight. Here are some steps on how to get it set up on a Unix web server:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment