禁止您无权访问此服务器上的/dokuwiki #
权限问题,检查以下两点
- 注意下dokuwiki下文件的权限(nginx的执行用户是nginx)
- dokuwiki.conf的中指定的路径是否正确
because search permissions are missing on a component of the path
#
关闭 SELinux 即可,关闭命令
setenforce 0
访问网页返回 502 bad gateway
#
nginx 找不到 php 了,检查下 nginx 对应的服务的配置中的
fastcgi_pass unix
项和 php 的 www.conf
配置文件中的 listen
的值是否一致
中文文件名乱码 #
在网页创建的中文名字空间和页面后,在服务器上全都显示的都是乱码 在文件
conf/local.php
最后添加
$conf['fnencode'] = 'utf-8';
修改 inc/pageutils.php
function utf8_encodeFN($file,$safe=true){
global $conf;
if($conf['fnencode'] == 'utf-8') return $file;
if($safe && preg_match('#^[a-zA-Z0-9/_\-\.%]+$#',$file)){
return $file;
}
if($conf['fnencode'] == 'safe'){
return SafeFN::encode($file);
}
// 注释掉下面两行
// $file = urlencode($file);
// $file = str_replace('%2F','/',$file);
return $file;
}
function utf8_decodeFN($file){
global $conf;
if($conf['fnencode'] == 'utf-8') return $file;
if($conf['fnencode'] == 'safe'){
return SafeFN::decode($file);
}
// 注释掉下面一行
// return urldecode($file);
// 加上下面这行
return $file;
}
参考自: dokuwiki:解决中文乱码问题
PHP 函数xml_parser_create不可用。也许您的托管服务提供商出于某种原因禁用了它 #
没有安装 xml 模块,搜索安装对应的模块即可
yum install -y php-xml.x86_64
重定向的次数过多 #
因为给网站套上了 cdn,其中的 ssl 设置不正确,详细原因和解决方法请参考《 使用cloudflare后无限跳转》