这是本文档旧的修订版!
本站的dokuwiki设置
本文是该wiki的安装配置说明,dokuwiki主页有详细的manual,这里只简要列出处理步骤。
操作系统基于CentOS 6,Web服务器为Apache,dokuwiki版本为2014-05-05a “Ponder Stibbons”。
初始安装
Web服务器为Apache 2.2,dokuwiki版本为2014-05-05a “Ponder Stibbons”。
web服务器配置
为了安全性,对dokuwiki的几个关键目录进行设置。
在/etc/httpd/conf/httpd.conf末尾添加:
<Directory /var/www/html/wiki> Order deny,allow Allow from all </Directory> <LocationMatch "/wiki/(data|conf|bin|inc)/"> Order allow,deny Deny from all Satisfy All </LocationMatch>
有关dokuwiki安全方面的详细说明,可参阅http://www.dokuwiki.org/security。
dokuwiki安装
解包
wiki程序安装在web服务器目录/var/www/html下,并将文件权限归属为web服务器进程用户(apache):
cd /var/www/html tar xzf dokuwiki-*.tgz mv dokuwiki wiki chown -R apache:apache wiki/ chmod -R o-rwx wiki/
有关dokuwiki权限方面的详细说明,可参阅http://www.dokuwiki.org/install:permissions。
初始配置
通过浏览器运行install.php,进行初始配置,包括设置语言、wiki名称、管理员帐户、wiki类型、license等。
完毕以管理员帐户登录,添加一个日常应用的普通帐户;设置目录权限为0750,文件权限为0640;由于是个人wiki,关闭注册功能。
template模板设置
有关模板的详细说明,可参阅http://www.dokuwiki.org/Template。
这里直接使用缺省的模板。
plugin插件设置
dokuwiki提供了丰富的插件,有关插件的详细说明,可参阅http://www.dokuwiki.org/plugins。
插件通过扩展管理器直接安装。
安装完毕,若插件没有效果,则更新下缓存:
touch /var/www/html/wiki/conf/local.php
有关缓存问题的详细说明在:http://www.dokuwiki.org/devel:caching#purging_the_cache。
目前使用的插件:
- Pagelist, http://www.dokuwiki.org/plugin:pagelist
- Table Width, http://www.dokuwiki.org/plugin:tablewidth