一.配置网络
1.将虚拟机改为NAT模式
vi /etc/sysconfig/network-scripts/ifcfg-ens33
将最后一行更改为yesphp
重启网络 service network restart 而后输入ip addr查看本身IP
ssh链接到MobaXterm
下载安装Dokuwiki工具包 yum install vim yum -y install wget yum -y install curl yum install -y httpd 下载安装apache yum install -y httpd
查看Apache状态,而后启动apache systemctl status httpd
systemctl start httpdhtml
防火墙开启80端口 firewall-cmd --add-port=80/tcp --permanent firewall-cmd --reload
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
从新启动httpd
systemctl restart httpdmysql
下载Dokuwiki安装,并解压到http根目录下 wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz tar -xzvf dokuwiki-stable.tgz mv dokuwiki-2018-04-22b/ /var/www/html/wiki/
dokuwiki系统环境配置
更改wiki目录权限,chown -R apache:apache /var/www/html/wiki/
apache配置文件控制目录不可访问:web
vim /etc/httpd/conf/httpd.conf <LocationMatch "/(data|conf|bin|inc)/"> Order allow,deny Deny from all Satisfy All </LocationMatch>
从新启动httpd
systemctl restart httpdredis
关闭防火墙
systemctl stop firewalld.service
setenforce 0sql
安装wiki
进入 浏览器,进入url:【域名(IP)/wiki/install.php】,打开安装页面
填写以下信息:apache
点击“保存”后,即开始安装,完成就进入新建的dokuwiki站点vim
而后点击startcentos
以后就能够编辑了浏览器