先做准备工作
yum -y install epel-release #安装php7的yum源 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm #安装php7 yum erase php* yum -y install php* yum -y install php70w-mysql php70w-xml php70w-soap php70w-xmlrpc php70w-mbstring php70w-json php70w-gd php70w-mcrypt #php -v查看版本 要5.6以上才行
参考官网配置 https://www.dokuwiki.org/install:apache
echo “
AliasMatch ^/dokuwiki/sites/[^/]+$ /usr/share/dokuwiki/ AliasMatch ^/dokuwiki/sites/[^/]+/(.*)$ /usr/share/dokuwiki/$1 Alias /dokuwiki /usr/share/dokuwiki/ <Directory /usr/share/dokuwiki/> Options +FollowSymLinks require all granted ##VER APACHE2.4 #Allow from localhost 127.0.0.1 ::1