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

以後就能夠編輯了瀏覽器

相關文章
相關標籤/搜索