Centos 7 搭建Dokuwiki

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

在这里插入图片描述

发布了26 篇原创文章 · 获赞 0 · 访问量 535

猜你喜欢

转载自blog.csdn.net/Butterfly0011/article/details/104923428
今日推荐