openbsd:dokuwiki
DokuWiki
- DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database.
# pkg_add -D snap dokuwiki
# chown www /var/www/dokuwiki/lib/tpl
# chown www /var/www/dokuwiki/data/log
# cd /etc/php-8.2.sample
# for i in *; do ln -sf ../php-8.2.sample/$i ../php-8.2/; done
# rcctl -f start php82_fpm
# rcctl enable php82_fpm
/etc/httpd.conf:
server "wiki.openbsd7" {
listen on * port 80
root "/dokuwiki"
directory index doku.php
location "*~" { block }
location ".*" { block }
location "/data/*" { block }
location "/conf/*" { block }
location "/bin/*" { block }
location "/inc/*" { block }
location "/vendor/*" { block }
location "*.php*" {
fastcgi socket "/run/php-fpm.sock"
}
}
# rcctl -f restart httpd
/var/www/dokuwiki/conf/local.php:
... $conf['title'] = 'wiki'; $conf['license'] = '0'; $conf['showuseras'] = 'username'; $conf['useheading'] = 'navigation'; $conf['useacl'] = 1; $conf['superuser'] = '@admin'; $conf['disableactions'] = 'register'; $conf['usewordblock'] = 0; $conf['updatecheck'] = 0; $conf['userewrite'] = '2'; $conf['fnencode'] = 'utf-8';
openbsd/dokuwiki.txt · Last modified: 2025/05/30 17:03 by Alexey
