centos 7 安裝dokuwiki

一.配置網絡ip
vim /etc/sysconfig/network-scripts/ifcfg-ens33php

centos 7 安裝dokuwiki

重啓網絡html

service network restart
centos 7 安裝dokuwiki
ifconfig查看ip地址
centos 7 安裝dokuwiki
ping百度(ping www.baidu.com)
centos 7 安裝dokuwikimysql

二.安裝Apache
1.yum安裝Apache2.4
yum install -y httpd
centos 7 安裝dokuwiki
安裝完成,檢查下apache服務狀態,剛安裝完是關閉的,須要啓動apache
systemctl status httpd
systemctl start httpd
centos 7 安裝dokuwiki
防火牆開啓80端口(默認端口)
2.修改http默認
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
centos 7 安裝dokuwiki
三.安裝php
1.安裝php7以及擴展
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
centos 7 安裝dokuwiki
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
centos 7 安裝dokuwiki
yum install php70w php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel
centos 7 安裝dokuwiki
2.重啓httpd
systemctl restart httpd
3.建立一個phpinfo.php 文件測試web

<?php phpinfo(); ?>
centos 7 安裝dokuwiki
四.下載wget命令(由於最小化沒有wget命令,因此須要yum下載,若是是其餘版本均可以忽略此步)redis

yum install wgetsql

centos 7 安裝dokuwiki

五.安裝dokuwikiapache

先安裝dokuwiki包
wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
centos 7 安裝dokuwiki
1. 下載dokuwiki解壓到http跟目錄下vim

tar -xzvf dokuwiki-stable.tgzcentos

mv dokuwiki-2018-04-22b/ /var/www/html/wiki/瀏覽器

2.wiki系統環境配置
更改wiki目錄權限,修改目錄下文件的group和user (group和user要根據apache配置文件httpd.conf來)

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

apache配置文件控制目錄不可訪問:

#vi /etc/httpd/conf/httpd.conf

<LocationMatch "/(data|conf|bin|inc)/">
Order allow,deny
Deny from all
Satisfy All
</LocationMatch>
centos 7 安裝dokuwiki
#semanage permissive -a httpd_t

#systemctl restart httpd

六.安裝wiki

進入 瀏覽器,進入url:【域名(IP)/wiki/install.php】,打開安裝頁面

    若是沒有關閉防火牆,則先關閉防火牆

在頁面上設置wiki站點語言、定義站點名稱、建立管理員等

點擊「保存」後,即開始安裝,完成就進入新建的dokuwiki站點了

    在頁面上設置wiki站點語言、定義站點名稱、建立管理員等

centos 7 安裝dokuwiki

centos 7 安裝dokuwiki

點右上角的登陸

centos 7 安裝dokuwiki

點start -----------> 再點Create this page (在登陸時輸IP地址/wiki)

centos 7 安裝dokuwiki

centos 7 安裝dokuwiki

centos 7 安裝dokuwiki

相關文章
相關標籤/搜索