Open source knowledge management system -dokuwiki installation record

Architecture: LNMP

 

wiki-based unified: Dokuwiki

Plug: Imgpaste (picture attached plug-in), Indexmenu (navigation plug-in)

Creating navigation (New Page):

{{indexmenu>.:#1 | js navbar dsort nocookie id#random }}

 

Video Reference

1, Dokuwiki Features of:

  ① open source, free, suitable for less demanding small enterprise deployments;

  ② without a database, all are txt text storage;

  ③ simple to use, easy to manage;

  ④ decompression can be used

 

2, File Description

  ① main configuration file: /dokuwiki/conf/dokuwiki.php // default without modification

  ② installation file: /dokuwiki/install.php // access method: address: port /install.php 80 ports and can be omitted port number, you can delete the installation of

3, the virtual machine configuration { Because I like alone in nginx / conf / server_conf / separate virtual machine configuration, easy to manage, so the nginx / conf / server_conf / built dokuwiki.conf file 

  If you like, like me, do not like to make changes directly on the main nginx configuration files, in order to avoid too convenient configuration management

  Need to "include /usr/local/nginx/conf/server_conf/*.conf;" nginx.conf write module at the http {}

  

{Server 

        the listen        8081 ; # listening port 
        server_name DokuWiki; 
        charset UTF - . 8 ; 
        #access_log logs / host.access.log main; 
        the root    / usr / local / Nginx / HTML / DokuWiki; # DokuWiki path 
        index index.html index.htm index .php; # Home type 

        # php resolution configuration 
        LOCATION ~ \ .php $ { 
               fastcgi_pass UNIX: / var / RUN / PHP- fpm.sock; 
               fastcgi_param SCRIPT_FILENAME $ $ DOCUMENT_ROOT fastcgi_script_name; 
               fastcgi_index the index.php; 
               the include fastcgi_params; 
        }
}

 

4, plug-in installation

  ① directly after downloading the plug-long spread to the directory / dokuwiki / lib / plugins, and extract

  ② need to rename the file name if you do not know how you can look dokuwiki configuration error (plugin loader will complain unsuccessful)

   

  

[root @ localhost plugins] # mv imgpaste1 / imgpaste # required to rename a file 
[root @ localhost plugins] # / usr / local / nginx / sbin / nginx -s reload # nginx reload configuration without rebooting nginx

 

   ② decompression as required after rename the plugin file, you also need to modify directory permissions, otherwise it will be an error;

     

     

[root@localhost plugins]# chown www:www -Rf indexmenu/
[root@localhost plugins]# /usr/local/nginx/sbin/nginx -s reload

 

5. When all configured, the main page should look like;

  

 

 

 

6, further description:

  ① If you want to hide a directory in the directory navigation, you can configure the display, enter the directory name in the configuration management →;

  

 

 

   ② sidebar if you write the same name and the start page will appear as shown, does not look good, so I always empty (yet to find a treatment method)

    

 

 

 

  

 

 

 

 7, grammar explanation, please refer to more Dokuwiki Formatting Syntax

   ① paragraph {title

  ====== H1 title ====== 
  ===== H2 title ===== 
  ==== H3 heading ==== 
  === H4 title === 
  == == H5 title 
  ----- # 4 or more consecutive - horizontal dividing lines 

  }

  ② multimedia file {
  {{wiki: dokuwiki-128.png} } # original size 
  {{wiki: dokuwiki-128.png 50 }?} # specified width 50 
  {{Wiki:? DokuWiki-128.png 200 * 50}} # 200 specified width height and 50 
  {}} # {http://php.net/images/php.gif?200x50 external images specified width and height 
  {{wiki: dokuwiki-128.png} } # right alignment 
  {{wiki: dokuwiki- 128.png left alignment}} # 
  {{wiki: dokuwiki-128.png} } # intermediate alignment 
  {{wiki: dokuwiki-128.png | this is the caption}} # center-aligned, the image name is defined 

  }

 

 

Guess you like

Origin www.cnblogs.com/mranyun/p/11799016.html