• config Doku wiki


    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 pldokuwikistyle.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 等
  • 相关阅读:
    爬虫相关
    进程、线程、协程
    经典排序算法详细介绍
    Pyhton学习-Python与中间件之Memcache(4)
    Python学习-Python操作数据库之MongoDB(2)
    Python学习-Python操作数据库之MySQL(1)
    人工智能安全(一)——初识人工智能
    Windows应急响应和系统加固(12)——SQL Server/MySQL/Oracle日志提取和安全分析
    Windows应急响应和系统加固(11)——Weblogic各类漏洞的日志分析和调查取证
    Windows应急响应和系统加固(10)——Nginx日志分析以及JBoss日志分析
  • 原文地址:https://www.cnblogs.com/bob-dong/p/14248198.html
Copyright © 2020-2023  润新知