DokuWiki使用教程

简介

官网

简单点说就是一个小型的Wiki平台,我们可以用来制作一个公司的手册,或者个人知识库系统等等。我有点惊讶的是居然这个数据是存在文本(txt)文件里面的,没有放到数据库里面。当然也有好处,就是对系统资源少了一个数据库的需求。同时迁移和备份的时候一个文件夹备份就可以搞定一切。


安装

系统环境搭建

PHP环境,可以参照LNMP或宝塔之类的。
LNMP
宝塔

安装

  • 域名等等的配置,没什么说的,和Wordpress搭建类似。详情参见
    Wordpress
  • GIT安装包到服务器
    git clone https://github.com/splitbrain/dokuwiki.git

    GIT教程

伪静态设置

你懂的,默认链接太难看了,我就不吐槽了。

  • .htaccess配置
    文件根目录里面默认有一个.htaccess.dist,另存为.htaccess。然后把里面的注释去掉即可。去掉后主要内容如下,注意要把里面的注释也去掉了。

    RewriteEngine on
    RewriteBase /dokuwiki
    RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
    RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
    RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
    RewriteRule ^$ doku.php [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*) doku.php?id=$1 [QSA,L]
  • 后台配置
    登陆后台,把设置里面的高级设置,改成如图所示的设置
    file

邮箱配置

用户注册时要用。

  • 安装插件 smtp plugin
    直接在扩展管理器搜索即可,对!你没看错,这个系统是有插件和主题的。

  • 邮箱配置
    我用的是QQ邮箱,目前知道Gmail不支持。具体参照:网站配置QQ邮箱来作为发送邮箱

我们这儿关键要获取的是授权码

  • 后台配置
    如图所示:
    file

Markdown支持

没办法,用来这么久的Markdown就爱不释手了。毕竟编辑时脱离鼠标太爽了。

  • 安装插件 Markdown Page Plugin

  • 使用:
    我们直接在编辑时使用如下标签就行了,可以存在多个,毕竟这个系统也有自己的语法。

    <markdown>
    markdwon 文章
    </markdown>

最后

My wiki


除非特别说明,本博客所有作品均采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。转载请注明转自-https://www.emperinter.info/2019/09/08/dokuwiki%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b/

3 thoughts on “DokuWiki使用教程”

  1. Hi, I do believe this is a great web site. I stumbledupon it 😉 I am going to return yet again since i
    have bookmarked it. Money and freedom is the best way to change, may you be rich and continue to guide others.
    I have been surfing online more than 2 hours today, yet I never found any
    interesting article like yours. It’s pretty worth enough for me.
    In my view, if all web owners and bloggers made good content as you did, the
    internet will be much more useful than ever before.
    Greetings from Idaho! I'm bored to death at work so I
    decided to browse your website on my iphone during lunch break.
    I enjoy the info you provide here and can't wait to take a look when I
    get home. I'm amazed at how fast your blog loaded
    on my phone .. I'm not even using WIFI, just 3G .. Anyhow, great site!
    http://house.com

  2. Thanks for your support! I glad to hear that.I really hope you are a really man for you don't put a lot of links on your comment.You know that I always got a lot of spam on my website,It feels not very well for some blogger like me.

Leave a Comment