Dokuwiki安裝(linux)

Dokuwiki安裝 (linux)
一.簡介
dokuwiki是一個開源wiki引擎程序,運(yùn)行于PHP環(huán)境下。無需數(shù)據(jù)庫。Doku Wiki 程序小巧而功能強(qiáng)大、靈活,適合中小團(tuán)隊和個人網(wǎng)站知識庫的管理。
二.安裝步驟:
1.安裝前需要確保以下相依組件是否已經(jīng)安裝

在富源等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站設(shè)計制作、成都網(wǎng)站制作 網(wǎng)站設(shè)計制作按需策劃設(shè)計,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),全網(wǎng)營銷推廣,成都外貿(mào)網(wǎng)站建設(shè),富源網(wǎng)站建設(shè)費(fèi)用合理。

yum install gcc-c++
yum install make
yum install expat-devel
yum install perl
yum install curl-devel
yum install libxml2-devel
yum install libjpeg-devel
yum install libpng-devel
yum install freetype-devel

2.由于dokuwiki需要PHP環(huán)境,故要先裝PHP

# yum install epel-release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi

# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-MySQLnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

成功了。

    # php -v

PHP 5.6.40 (cli) (built: Jul  3 2019 06:59:29) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

3.dokuwiki還需要Apache服務(wù),故還需裝httpd

yum install httpd

systemctl start httpd

4.然后安裝dokuwiki,dokuwiki是沒有l(wèi)inux和Windows之分,所以安裝的時候可以自己下載下再導(dǎo)入虛擬機(jī)中,也可以直接執(zhí)行以下命令

#wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz //下載網(wǎng)站安裝壓縮包
#tar -zvxf dokuwiki-stable.tgz //解包解壓縮
#cp -r dokuwiki-2017-02-19e /var/www/html/wiki //復(fù)制解壓的網(wǎng)站源碼文件到網(wǎng)站根目錄

5.更改httpd.conf

vim /etc/httpd/conf/httpd.conf

將 DocumentRoot 目錄更改到第4步中的dokuwiki路徑下 默認(rèn)為/var/www/html
下面配置作用是對URL進(jìn)行過濾以保證數(shù)據(jù)安全

<LocationMatch "/(data|conf|bin|inc)/">

Order allow,deny

Deny from all

Satisfy All

</LocationMatch>

6.修改權(quán)限
根據(jù)httpd.conf 中下述兩個配置值進(jìn)行修改

User apache
Group apache

權(quán)限不修改會導(dǎo)致下面的訪問頁面報錯

#chown -R apache.apache /var/www/html/wiki//將文件所有者由root用戶
改為apache用戶

7.調(diào)整Apache mime設(shè)定,讓Apache 可以支援 PHP (/etc/mime.types ) ,在配置中加入

application/x-httpd-php php php4 phtml
application/x-httpd-php-source phps

重啟

systemctl restart httpd

8.關(guān)閉防火墻

 setenforce 0
 systemctl stop firewalld

9.訪問網(wǎng)站ip/wiki/install.php

名稱欄目:Dokuwiki安裝(linux)
文章轉(zhuǎn)載:http://muchs.cn/article28/gphocp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化Google、企業(yè)建站網(wǎng)站內(nèi)鏈、營銷型網(wǎng)站建設(shè)App設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)