Centos 搭建部署DoKu wiki

安装搭建DoKu wiki

1:安装apache

 yum install -y httpd

2:安装完成,检查下apache服务状态,刚安装完是关闭的,需要启动apache

   systemctl status httpd
   systemctl start httpd

3:防火墙开启80端口(默认端口)

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

如果端口正在被占用,查看端口状态netstat -ntpl,然后就杀死

4:安装PHP7
安装php7以及扩展

#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
#systemctl restart httpd(重新启动httpd)

5;下载dokuwiki
下载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/

6:dokuwiki系统环境配置
更改wiki目录权限,修改目录下文件的group和user (group和user要根据apache配置文件httpd.conf来)

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

apache配置文件控制目录不可访问:
#vim /etc/httpd/conf/httpd.conf (或使用vi)

Order allow,deny
Deny from all
Satisfy All

#systemctl restart httpd

7:安装wiki

关闭防火墙
systemctl stop firewalld.service
setenforce 0

8:进入 浏览器,进入url:【域名(IP)/wiki/install.php】,打开安装页面

你可能感兴趣的:(Linux运维服务搭建)