centos7最小化安装Dokuwiki

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

重启网络
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 httpd

    防火墙开启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 httpd

    下载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配置文件控制目录不可访问:

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最小化安装Dokuwiki

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

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

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

centos7最小化安装Dokuwiki
然后点击start
centos7最小化安装Dokuwiki
centos7最小化安装Dokuwiki

之后就可以编辑了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值