Installation
Apache2
-
conf
/etc/apache2/sites-available/default -
Alias /wiki/ "/home/likg/wiki/dokuwiki/" -
AllowOverride all # enable .htaccess for security -
Options -Indexes #don't allow list content of a folder, otherwise mod_autoindex
will generate a file list -
Order deny,allow -
Allow from all
- install php.
yum -y install php - edit /etc/httpd/conf/httpd.conf
-
-
listen 8081 -
ServerName localhost:8081 -
Alias /wiki "/var/www/dokuwiki/" -
Options -Indexes -
AllowOverride all -
Order allow,deny -
Allow from all
-
- /etc/httpd/conf.d/ 已经有了 php.conf, 所以php 默认就好用
-
nginx
- /usr/local/nginx/conf/nginx.conf
-
-
add the following in server{} -
location /wiki { -
proxy_pass http://127.0.0.1:8081; -
}
-
- 因为浏览器的问题,只能用 http://host/wiki/ 访问,最后一个 / 不能少
Tomcat-
/usr/local/jira/conf/Catalina/localhost/dokuwiki.xml -
- ?xml version="1.0" encoding="UTF-8"?
- Context
docBase="/var/www/dokuwiki"
reloadable="true" debug="0"
-
extract JavaBridge.war -> /var/www/dokuwiki/ -
copy dokuwiki to above folder -
add index.html as welcome file in /var/www/dokuwiki/WEB-INF/web.xml -
index.html -
- html lang="en"
- head
- meta http-equiv="refresh" content="0;url=index.php"
- /head
- body /body /html
--------------------------------------- -
chmod -R o+w ./dokuwiki
# enable doku write data/pages ... - /lib/plugins must be writable, or 很多插件都不工作, extension directory is not writable.
- 升级前 在 wiki根目录 mkdir vendor, chmod a+w vendor, 这样升级不会报告/vendor 不可写失败
自我注册
- 安装swiftMail 插件
- 配置设置最下方,SwiftMail 配置 SMTP, user(带@nationsky.com), password
- 管理,验证swiftMail 设置
Synchronization
-
local install
plugin
https://www.dokuwiki.org/plugin:sync
- remote: enable remote xmlprc in configuration manager, set remote-user
- local create sync profile
Security
-
according to
https://www.dokuwiki.org/security#web_access_security
- Using apache2 on Ubuntu, the .htaccess does not work until you activate the 'mod_rewrite' in apache2 (sudo a2enmod rewrite && sudo service apache2 restart)
-
## in
/dokuwiki, # no need to remove the .dist, verified -
test http://yoursite/wiki/README
Config
-
lib\tpl\dokuwiki\style.ini __site_width__ = "75em" -> "90%" 更改页面默认宽度
Plugin
-
authorstats 那些人贡献了那些东西
-
Doodle 投票
-
quickstats 按照访问按月统计 (局域网内无显示,会使页面加载变得很慢)
-
edittable (需要2015 8 月最新的版本(hrun之后的版本),否则图标不显示)
-
-
Blog {{archive>namespace}}, need include.
-
Changes #list recent changes
-
Cloud, cloud, tagcloud, searchcloud
-
Discussion
-
{{thread>namespace}}的方式建立forum.
-
The comments are saved in special meta files inside the /data/meta directory. Each page which has a discussion has a corresponding pagename.comments file.
-
-
Hidden 折叠
-
Include 页面引用, blog 插件也需要他
-
Move
-
移动页面,支持批量移动,但是在ubuntu 上 一定对新建的文件夹 chmod o+w, 否则不能移动文件,只有链接被修改了。
-
Move 可以 move namespage, Pagemove 默认版本有错误,需要升级到 2015-8-11版本后才好用,而且只能移动单个page
-
-
Pagelist, dir 显示 namespace 下面的网页. format: &nodate&nouser etc
-
Searchstats # for cloud ~~SEARCHCLOUD:number~~
-
Searchindex manager # rebuild index
-
Sync 同步 (不能同步discussion)
-
Tag 可以用 topic, search, count>
-
Upgrade
-
Wrap #多column, box 等
-