标签:sysconfig 根目录 ado size emctl 打开 comm htm oba
一.配置网络重启网络
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 httpd
防火墙开启80端口
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
安装PHP(7)
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm![](https://s1.51cto.com/images/blog/201907/16/0b0bcb2befa56a3eaa56189bac075df2.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
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 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/
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>
重新启动httpd
systemctl restart httpd
关闭防火墙
systemctl stop firewalld.service
setenforce 0
安装wiki
进入 浏览器,进入url:【域名(IP)/wiki/install.php】,打开安装页面
标签:sysconfig 根目录 ado size emctl 打开 comm htm oba
原文地址:https://blog.51cto.com/14375810/2420570