Centos 7 搭建Dokuwiki

DokuWiki是一个开源wiki引擎程序,运行于PHP环境下。Doku Wiki 程序小巧而功能强大、灵活,适合中小团队和个人网站知识库的管理。
首先先配置动态网卡 再继续以下步骤:
Centos 7 搭建Dokuwiki
1.安装httpd

yum install -y httpd

Centos 7 搭建Dokuwiki
Centos 7 搭建Dokuwiki
2.启动httpd

systemctl start httpd

Centos 7 搭建Dokuwiki
3…查看状态
systemctl status httpd
Centos 7 搭建Dokuwiki
4.防火墙开启80端口(默认端口)

firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload

Centos 7 搭建Dokuwiki
5.下载php及其依赖包

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Centos 7 搭建Dokuwiki

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Centos 7 搭建Dokuwiki

yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel     安装php插件

Centos 7 搭建Dokuwiki
6.重启

systemctl restart httpd

Centos 7 搭建Dokuwiki
7.下载

wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

Centos 7 搭建Dokuwiki
8.解压

tar -zxvf dokuwiki-stable.tgz

Centos 7 搭建Dokuwiki
.
.
.
Centos 7 搭建Dokuwiki
9.移动

mv dokuwiki-2018-04-22b /var/www/html/wiki/

Centos 7 搭建Dokuwiki
10.给权限

chown -R apache:apache /var/www/html/wiki/

Centos 7 搭建Dokuwiki
11.配置文件

vim /etc/httpd/conf/httpd.conf

Centos 7 搭建Dokuwiki
在脚本的最末尾添加

 <LocationMatch "/(data|conf|bin|inc)/">        
Order allow,deny        
Deny from all        
Satisfy All        
</LocationMatch>

12.重启

systemctl restart httpd

Centos 7 搭建Dokuwiki
13.关闭防火墙

systemctl stop firewalld
setenforce 0

Centos 7 搭建Dokuwiki
14.查看IP

ifconfig

Centos 7 搭建Dokuwiki
15.访问网页去网页网址栏输

ip/wiki/install.php    例如:192.168.1.130/wiki/install.php

Centos 7 搭建Dokuwiki

上一篇:CentOS7 配置LAMP环境


下一篇:linux命令安装 mysql,php,Apache以及站点配置,环境的搭建。