DokuWiki是一个开源wiki引擎程序,运行于PHP环境下。Doku Wiki 程序小巧而功能强大、灵活,适合中小团队和个人网站知识库的管理。
首先先配置动态网卡 再继续以下步骤:
1.安装httpd
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 安装php插件
6.重启
systemctl restart httpd
7.下载
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.重启
systemctl restart httpd
13.关闭防火墙
systemctl stop firewalld
setenforce 0
14.查看IP
ifconfig
15.访问网页去网页网址栏输
ip/wiki/install.php 例如:192.168.1.130/wiki/install.php