Dokuwiki的回应
Could not connect to <proxy> Permission denied (13)
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
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]
在控制台中,我没有问题。
我不知道该怎么办才能找到问题。
SELinux阻止apache-httpd进程访问网络。您必须允许守护程序访问才能使用Dokuwiki升级功能。
使用以下方法检查设置:
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
显示是否已经安装它。)
我还不熟悉SELinux,并且此更改可能会产生副作用,从而损害系统的安全性!
在unix.stackexchange.com的帮助下找到了解决方案
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句