Dokuwiki代理:无法连接权限被拒绝(13) [英] Dokuwiki Proxy: Could not connect Permission denied (13)

查看:544
本文介绍了Dokuwiki代理:无法连接权限被拒绝(13)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dokuwiki回复

Dokuwiki responses with

Could not connect to <proxy> Permission denied (13)

当我尝试使用 Wiki升级插件时.另外,扩展管理器打印

when I try to use the Wiki Upgrade Plugin. Also the Extension Manager prints

The plugin repository could not be contacted. Make sure your server is
allowed to contact www.dokuwiki.org and check your proxy settings. [Retry]

我确定代理设置正确.

如果我尝试通过curl访问www.dokuwiki.org

If I try to access www.dokuwiki.org with curl

curl https://download.dokuwiki.org -L

或wget

wget https://www.dokuwiki.org
--2016-11-15 15:13:08--  https://www.dokuwiki.org/
Connecting to <proxy:port>... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: https://www.dokuwiki.org/dokuwiki# [following]
--2016-11-15 15:13:08--  https://www.dokuwiki.org/dokuwiki
Connecting to <proxy:port>... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

[ <=>            ] 25,784      --.-K/s   in 0.02s

2016-11-15 15:13:08 (1.38 MB/s) - ‘index.html’ saved [25784]

在控制台中我没问题.

我不知道该怎么做才能找到问题.

I have no idea what I could do to find the problem.

  • CentOS Linux版本7.2.1511(核心)
  • Dokuwiki发行版2016-06-26a"Tsort的风采"

推荐答案

原因

SELinux 阻止了apache-httpd进程访问网络.您必须允许守护程序访问才能使用Dokuwiki升级功能.

The Reason

SELinux is preventing the apache-httpd process to access the network. You have to allow the daemon access to use the Dokuwiki uprade features.

通过以下方法检查设置:

Check the settings with:

 getsebool -a | grep httpd_can_network_connect

我得到了:

 httpd_can_network_connect --> off
 httpd_can_network_connect_cobbler --> off
 httpd_can_network_connect_db --> off

使用:

setsebool -P httpd_can_network_connect on

您打开 httpd进程的网络访问权限. (我必须先安装 policycoreutils-python rpm -qa | grep selinux显示您是否已安装它.)

you switch the network access for the httpd process on. (I had to install policycoreutils-python first, rpm -qa | grep selinux shows if you already have it.)

我还不熟悉SELinux,但此更改可能会产生副作用,损害系统的安全性

I am not familiar with SELinux (yet) and there may be side effects to this change that compromise the security of your system!

unix的帮助下找到了解决方案.stackexchange.com

这篇关于Dokuwiki代理:无法连接权限被拒绝(13)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆