wiki平台之dokuwiki

1.dokuwiki官网 下载地址:https://download.dokuwiki.org/ 截止写这篇文章时,最新版本是2023-04-04a “Jac

1.dokuwiki官网

下载地址:https://download.dokuwiki.org/
截止写这篇文章时,最新版本是2023-04-04a “Jack Jackrum”
下载链接:https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

2.安装dokuwiki

操作系统:Centos7.9
# tar xvf dokuwiki-stable.tgz
# cd dokuwiki-2023-04-04a/
# ls
bin  conf  COPYING  data  doku.php  feed.php  inc  index.php  install.php 
lib  README  SECURITY.md  vendor  VERSION

(1)安装php

安装remi:
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
## 安装PHP 7.3
yum --enablerepo=remi-php73 install php php-xml php-xmlrpc
##php-xml php-xmlrpc是因为网页需要xml工具的支持,不然会报错:PHP function xml_parser_create is not available. Maybe your hosting provider disabled it for some reason?
如果还缺其他的模块,可以使用下面的命令,不过此次已经足够了
yum --enablerepo=remi-php73 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt
[root@centos7_test conf.d]# cat wiki.conf 
ServerName xj.indico.cnDocumentRoot "/var/www/dokuwiki"
AliasMatch ^/dokuwiki/sites/[^/]+$      /var/www/dokuwikig/
AliasMatch ^/dokuwiki/sites/[^/]+/(.*)$ /var/www/dokuwikig/$1
Alias      /dokuwiki                    /var/www/dokuwikig/
Options +FollowSymLinks
require all granted
##VER APACHE2.4#Allow from localhost 127.0.0.1 ::1# Uncomment to implement server-side URL rewriting# (cf. ).# Do *not* mix that with multisite!#RewriteEngine on#RewriteBase /dokuwiki#RewriteRule ^lib                      - [L]#RewriteRule ^doku.php                 - [L]#RewriteRule ^feed.php                 - [L]#RewriteRule ^install.php              - [L]                #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]#RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
Require all granted##FOR VER APACHE2.4
Require all granted##FOR VER APACHE2.4


重启httpd服务,访问网址:https://xj.indico.cn/install.php,可以选择语言为中文
在这里插入图片描述
在这里插入图片描述