一、dokuWiki介绍:

DokuWiki is a simple to use Wiki aimed at the documentation needs of a small company. It works on plain text files and thus needs no database. It has a simple but powerful syntax which makes sure the datafiles remain readable outside the Wiki. 即:DokuWiki是针对小公司对文档需求的wiki的一个应用,它可以工作在纯文本文件上而无需数据库。它有一个简单但强大的语法使得确保datafiles保持wiki的外在可读性。


二、安装

 1.第一步:首先需要nginx+php环境,由于dokuWiki无需数据库,所以这里略过,直接给出关键部分。

 2.第二步:下载并配置nginx    

   wget http://www.splitbrain.org/lib/exe/fetch.php?hash=fb67fc&cache=nocache&media=http%3A%2F%2Fgithub.com%2Fsplitbrain%2Fdokuwiki%2Ftarball%2Fmaster%3F.tgz

   tar zxf dokuwiki-2013-05-10a.tgz -C /u1/www/doc

   chown -R nobody:nobody /u1/www/doc

   nginx配置如下:      

       [root@resin conf]# cat /usr/local/app/nginx/conf/sites-enabled/gy_proj.conf

           server {

               listen       80;

               server_name  pj.doku.com;

               access_log  /u1/logs/pj.access.log  combined;

               error_log  /u1/logs/pj.error.log;

               root   /u1/www/;

               location / {

                   index index.php index.html index.htm;

                   try_files $uri $uri/ index.php$uri?$args;

               }

               location ~ ^(.+.php)(.*)$ {

                   fastcgi_split_path_info ^(.+.php)(.*)$;

                   fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;

                   fastcgi_param  SCRIPT_FILENAME    $document_root/$fastcgi_script_name;

                   fastcgi_param  PATH_INFO          $fastcgi_path_info;

                   include fastcgi.conf;

                   fastcgi_pass  127.0.0.1:9000;

                   fastcgi_index index.php;

               }

           }

   3. 安装:

       /usr/local/app/nginx/sbin/nginx

       /usr/local/app/php/sbin/php-fpm

       在浏览器中输入:http://pj.doku.com/doc/install.php

        然后安装提示配置管理员信息,密码等即可。


三、测试:

输入:http://pj.doku.com/doc

151706552.jpg