dokuwiki 應用實踐

2021-07-25 23:39:01 字數 2829 閱讀 8233

[root@leekwen ~]# cat /etc/issue

centos release 6.5 (final)

kernel \r on an \m

[root@leekwen ~]# uname -ra

linux leekwen 2.6.32-573.22.1.el6.x86_64 #1 smp wed mar 23 03:35:39 utc 2016 x86_64 x86_64 x86_64 gnu/linux

## 環境配置 ##

### 修改httpd配置檔案 ###

## 修改前 ## #### 修改後 ###

### 安全配置 ###

增加如下行:

order allow,deny

deny from all

satisfy all

###摘錄httpd.conf的配置資訊###

include conf.d/*.conf

user apache

group apache

serveradmin root@localhost

usecanonicalname off

documentroot "/var/www/html/dokuwiki"

options followsymlinks

allowoverride none

options indexes followsymlinks

allowoverride none

order allow,deny

allow from all

order allow,deny

deny from all

satisfy all

userdir disabled

directoryindex index.html index.html.var

accessfilename .htaccess

order allow,deny

deny from all

satisfy all

typesconfig /etc/mime.types

defaulttype text/plain

mimemagicfile conf/magic

hostnamelookups off

errorlog logs/error_log

loglevel warn

### data/pages中的中文資料夾亂碼問題 ###

[root@leekwen pages]# pwd

/var/www/html/dokuwiki/data/pages

修改檔案:

1、/var/www/html/dokuwiki/conf/local.php

摘錄local.php的對應內容:

$conf['superuser'] = '@admin';

//add start

$conf['fnencode'] = 'utf-8';

//add end

2、/var/www/dokuwiki/inc/pageutils.php

摘錄pageutils.php的對應內容:

函式一:

function utf8_encodefn($file,$safe=true)

if($conf['fnencode'] == 'safe')

#add start

if($conf['fnencode'] == 'gbk')

# add end

$file = urlencode($file);

$file = str_replace('%2f','/',$file);

return $file;

}函式二:

dokuwiki安裝問題

dokuwiki setup error the datadir pages at data pages is not found,isn t accessible or writable.you should check your config and permission settings.or...

dokuwiki安裝問題

dokuwiki setup error the datadir pages at data pages is not found,isn t accessible or writable.you should check your config and permission settings.or...

dokuwiki服務搭建

root localhost rz 上傳dokuwiki包 root localhost tar zxvf dokuwiki stable.tgz c data server httpd htdocs 解壓 root localhost server chmod r 777 httpd 給予許可權 ...