To install DokuWiki using the FreeBSD ports tree, do the following:
#> cd /usr/ports/www/dokuwiki #> make install clean
The default DokuWiki directory is /usr/local/www/dokuwiki – Of course the directory can be changed or symbolic linked to anywhere
To configure dokuwiki copy the options from the /usr/local/www/dokuwiki/conf/dokuwiki.php file you want to edit to /usr/local/www/dokuwiki/conf/local.php.
If not done, a portupgrade will be change your config to default.
To upgrade using the ports tree, do:
#> portupgrade dokuwiki
Make sure that the ports tree has been updated, or this will have no effect.