1.安装httpd(apache)
yum install -y httpd
2.启动httpd
systemctl start httpd
3.查看状态
systemctl status httpd
4.防火墙开启80端口(默认端口)
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
5.下载php及其依赖包
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
yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel
6.重启
systemctl restart httpd
7.下载dokuwiki
(没有wget 先安装wget: yum install wget)
wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
8.解压
tar -zxvf dokuwiki-stable.tgz
9.移动
mv dokuwiki-2018-04-22b /var/www/html/wiki/
10.给权限
chown -R apache:apache /var/www/html/wiki/
11.配置文件
vim /etc/httpd/conf/httpd.conf
在末尾添加
<LocationMatch "/(data|conf|bin|inc)/">
Order allow,deny
Deny from all
Satisfy All
</LocationMatch>
12.查ip
ifconfig
13.重启
systemctl restart httpd
14.关闭防火墙
systemctl stop firewalld
setenforce 0
15.访问网页
去网页网址栏输入 ip/wiki/install.php
出现
完成