zoukankan      html  css  js  c++  java
  • linux centos下安装dokuwiki

    首先先大致介绍一下wiki:

    DokuWiki是一个开源wiki引擎程序,运行于PHP环境下。Doku Wiki 程序小巧而功能强大、灵活,适合中小团队和个人网站知识库的管理。

    DokuWiki可以与多种CMS程序进行整合,例如WordPress、XOOPS、PostNuke等。由于这个原因,很多Blog作者对DokuWiki比较感兴趣。

    1、确保一下相依套件已经安装 (如未安装 用 yum install 安裝即可 )

        gcc-c++
        make
        expat-devel
        perl
        curl-devel
        libxml2-devel
        libjpeg-devel
        libpng-devel
        freetype-deve

    2、安装php

    #yum list php  //查找可安装php程序包
    #yum install ***.(如php.x86_64) //安装相应php程序包

    3、安装httpd

    #yum list httpd //查找可安装httpd程序包
    #yum install ***.(如httpd.x86_64)//安装相应httpd程序包

    4、安装dokuwiki 

    #yum list dokuwiki  //查找可安装dokuwiki 程序包 
    # yum install ***.(如dokuwiki.noarch) //安装相应dokuwiki 程序包

      如未能查找到程序包

    #wget -c  http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz //下载网站安装压缩包
    #tar -zvxf dokuwiki-stable.tgz    //解包解压缩
    #cp -r dokuwiki-2013-05-10a/*  /var/www/html/wiki  //复制解压的网站源码文件到网站根目录

    5、更改 httpd.conf 

             # vi /etc/httpd/conf/httpd.conf

    将 DocumentRoot 目录更改到第4步中的dokuwiki路径下 默认为/var/www/html

    下面配置作用是对URL进行过滤以保证数据安全

     <LocationMatch "/wiki/(data|conf|bin|inc)/">
        Order allow,deny
        Deny from all
        Satisfy all
    </LocationMatch>

    6、修改权限

     根据httpd.conf 中下述两个配置值进行修改

    User apache
    Group apache

    权限不修改会导致下面的访问页面报错

    #chown -R apache.apache/var/www/html/wiki//将文件所有者由root用户改为apache用户 

    7、调整Apache mime设定,让Apache 可以支援 PHP (/etc/mime.types )   ,在配置中加入

    application/x-httpd-php                         php php4 phtml
    application/x-httpd-php-source             phps
    8、 重启 Apache ( service httpd restart ),连接到 Wiki 下的目录执行 install.php 进行安装设定(http://IP或者域名/wiki/install.php?l=zh)如出现以下红框内提示或者访问http://IP或者域名/wiki/data/pages/wiki/dokuwiki.txt能访问到dokuwiki.txt文件,说明数据不安全,需返回步骤5进行URL过滤配置。

    9、现在开始安装配置:

     
    维基名称:你wiki的名字,比如我的是Lainme's Blog
    启用ACL(推荐):即启用权限控制,这个保持默认(选中状态)
    超级用户:输入超级用户的用户名
    全名:超级用户的全名,和上一个一样就行
    E-Mail:超级用户的电子邮件地址
    密码:超级用户的密码
    请再输一次:再次输入密码
    初始的ACL政策:全局权限控制策略,在下拉列表中选择一个合适的
    开放的维基(任何人都有读、写、上传的权限)
    公开的维基(任何人都有读的权限,只有注册用户才有写和上传的权限)
    关闭的维基(只有注册用户才有读、写、上传的权限)

    填写完成后按“保存”完成安装。现在再次进入http://IP或者域名/dokuwiki,可以在右下角看到有个“登录”按钮,同时标题栏也变成了你设定的网站名称。


    为了安全,最好删除目录下的install.php文件。虽然Dokuwiki自身也有保护,install.php已经不能再次运行,不过还是以防万一吧。
       
          至此大功告成!!!

     

  • 相关阅读:
    HearthBuddy投降插件2019-11-01的使用
    正则表达式在线分析 regex online analyzer
    Tips to write better Conditionals in JavaScript
    The fileSyncDll.ps1 is not digitally signed. You cannot run this script on the current system.
    Cannot capture jmeter traffic in fiddler
    JMETER + POST + anti-forgery token
    input type color
    HearthBuddy修改系统时间
    What are all the possible values for HTTP “Content-Type” header?
    UDK性能优化
  • 原文地址:https://www.cnblogs.com/xiaochaoyxc/p/6206480.html
Copyright © 2011-2022 走看看