centos7最小化安装Dokuwiki

一.配置网络
1.将虚拟机改为NAT模式
centos7最小化安装Dokuwiki
centos7最小化安装Dokuwiki
vi /etc/sysconfig/network-scripts/ifcfg-ens33
centos7最小化安装Dokuwiki
将最后一行更改为yesphp

重启网络
service network restart
而后输入ip addr查看本身IP

centos7最小化安装Dokuwiki

ssh链接到MobaXterm

centos7最小化安装Dokuwiki

下载安装Dokuwiki工具包

yum install vim 
yum -y install wget
yum -y install curl
yum install -y httpd

下载安装apache
yum install -y httpd

centos7最小化安装Dokuwiki

查看Apache状态,而后启动apache
    systemctl status httpd

centos7最小化安装Dokuwiki
systemctl start httpdhtml

防火墙开启80端口
    firewall-cmd --add-port=80/tcp --permanent
    firewall-cmd --reload

centos7最小化安装Dokuwiki

安装PHP(7)

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

centos7最小化安装Dokuwiki

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

centos7最小化安装Dokuwiki

yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel

centos7最小化安装Dokuwiki
从新启动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/

centos7最小化安装Dokuwiki

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>

centos7最小化安装Dokuwiki

从新启动httpd
systemctl restart httpd
centos7最小化安装Dokuwikiredis

关闭防火墙
systemctl stop firewalld.service
setenforce 0
centos7最小化安装Dokuwikisql

安装wiki
进入 浏览器,进入url:【域名(IP)/wiki/install.php】,打开安装页面
填写以下信息:
centos7最小化安装Dokuwikiapache

点击“保存”后,即开始安装,完成就进入新建的dokuwiki站点
centos7最小化安装Dokuwikivim

centos7最小化安装Dokuwiki
而后点击start
centos7最小化安装Dokuwiki
centos7最小化安装Dokuwikicentos

以后就能够编辑了浏览器

相关文章
相关标签/搜索