用户工具

站点工具


wiki:wiki安装

wiki安装

参考网址

https://my.oschina.net/xhhuang/blog/1844035

环境准备

  • 需要php5.6或php5.6版本以上
  • 需要apache Httpd

yum install httpd -y

安装php5.6请百度搜索。

Centos7里面我是直接使用的php7

安装

解压安装包

tar -zxvf dokuwiki-xxxxxx.tgz
 
ls dokuwiki
bin  conf  COPYING  data  doku.php  feed.php  inc  index.php  install.php  lib  README  vendor  VERSION

放置解压包

将解压之后的dokuwiki目录放置在/var/www/html目录下

mv dokuwiki /var/www/html/

用户组设置

chown -R apache:48 /var/www/html/dokuwiki
或者
chown -R apache:apache /var/www/html/dokuwiki

执行安装

用网页浏览器访问ip/dokuwiki/install.php,根据网页提示进行安装

删除掉install.php文件

rm -rf install.php

配置目录访问权限

配置apache的httpd.conf(apache/conf/httpd.conf)文件,进行安全配置,保证wiki的数据安全

[root@izwz934uda0vhwlzenknpcz html]# vi /etc/httpd/conf/httpd.conf 添加如下几行:

<LocationMatch "dokuwiki/(data|conf|bin|inc)/">
    order allow,deny
    deny from all
    satisfy all
</LocationMatch>

添加完毕后,执行以下命令重启Apache Web Server

便捷安装方式

通过下载xampp来实现安装server平台,然后再正常安装dokuwiki,具体可自行百度。

修改时区

参考修改时区

dokuwiki迁移

原文件夹打包 -> 放到新服务器 -> 解压 -> 配置apache,php

问题1: 提示./data/pages/文件夹not found,或不可写

解决方式: 编辑/etc/selinux/config文件,将SELINUX=enforcing改为SELINUX=disabled, 直接关闭SELINUX

wiki/wiki安装.txt · 最后更改: 2023/06/16 14:01 由 zhangguo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki