Installation

Apache2 
  1. conf  /etc/apache2/sites-available/default
  2.     Alias /wiki/ "/home/likg/wiki/dokuwiki/"
  3.         AllowOverride all  # enable .htaccess for security
  4.         Options -Indexes  #don't allow list content of a folder, otherwise  mod_autoindex will generate a file list
  5.         Order deny,allow
  6.         Allow from all
HTTPD
  • install php.   yum -y install php
  • edit /etc/httpd/conf/httpd.conf
    1.   listen 8081
    2.   ServerName localhost:8081
    3.   Alias /wiki "/var/www/dokuwiki/"
    4.     Options -Indexes
    5.     AllowOverride all
    6.     Order allow,deny
    7.     Allow from all
  • /etc/httpd/conf.d/ 已经有了 php.conf, 所以php 默认就好用
  • nginx
    1. /usr/local/nginx/conf/nginx.conf
      1.  add the following in server{}
      2.         location /wiki {
      3.             proxy_pass http://127.0.0.1:8081;
      4.         }
    • 因为浏览器的问题,只能用 http://host/wiki/ 访问,最后一个 / 不能少
    ----------------------
    Tomcat
    1.  /usr/local/jira/conf/Catalina/localhost/dokuwiki.xml
      1. ?xml version="1.0" encoding="UTF-8"?
      2. Context docBase="/var/www/dokuwiki"  reloadable="true"  debug="0"  
    2.  extract JavaBridge.war -> /var/www/dokuwiki/
    3.  copy dokuwiki to above folder
    4.  add index.html as welcome file in /var/www/dokuwiki/WEB-INF/web.xml 
    5.  index.html
      1. html lang="en"
      2. head
      3. meta http-equiv="refresh" content="0;url=index.php"
      4. /head
      5. 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 不可写失败
自我注册
  1. 安装swiftMail 插件
  2. 配置设置最下方,SwiftMail 配置 SMTP, user(带@nationsky.com), password
  3. 管理,验证swiftMail 设置
config <wbr>Doku <wbr>wiki

Synchronization
  1. local install plugin https://www.dokuwiki.org/plugin:sync
  2. remote: enable remote xmlprc in configuration manager, set remote-user
  3. local create sync profile
Security
  1. according to https://www.dokuwiki.org/security#web_access_security
  2. Using apache2 on Ubuntu, the .htaccess does not work until you activate the 'mod_rewrite' in apache2 (sudo a2enmod rewrite && sudo service apache2 restart)
  3. ## in /dokuwiki,   mv .htaccess.dist .htaccess  # no need to remove the .dist, verified
  4. test http://yoursite/wiki/README
Config
  • lib\tpl\dokuwiki\style.ini __site_width__ = "75em" -> "90%" 更改页面默认宽度
Plugin
  1. authorstats 那些人贡献了那些东西
  2. Doodle 投票
  3. quickstats 按照访问按月统计 (局域网内无显示,会使页面加载变得很慢)
  4. 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 等
Posted on 2015-06-18 14:44  bob.dong  阅读(78)  评论(0编辑  收藏  举报