【发布时间】:2011-04-28 11:01:34
【问题描述】:
我有一个在 RHEL5/CentOS 专用系统上使用 NuSOAP 的 php 应用程序。
我遇到了以下错误:
2010-10-21 06:23:43.374471 soap_transport_http: entered send() with data of length: 1693
2010-10-21 06:23:43.374510 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host www.mysite.com, port 2194
2010-10-21 06:23:43.374557 soap_transport_http: calling fsockopen with host www.mysite.com connection_timeout 0
2010-10-21 06:23:43.700553 soap_transport_http: Couldn't open socket connection to server http://www.mysite.com:2194/webservice.event, Error (13): Permission denied
2010-10-21 06:23:43.700719 nusoap_client: Error: HTTP Error: Couldn't open socket connection to server http://www.mysite.com:2194/webservice.event, Error (13): Permission denied
我认为它与一些 httpd 配置有关 - 根据 http://www.linuxdevelop.com/redhat--fedora-linux-help/fsockopen-error-13-permission-denied-24366.shtml
我发现问题与 SELinux 配置。
我的服务器上启用了防火墙: 策略类型是有针对性的,强制执行 当前检查和 HTTPD 脚本 连接到网络没有 允许。
位置:桌面 > 系统设置 > 安全级别 > SELinux > httpd > HTTPD 脚本连接到 网络未选中。我检查了 它现在正在工作。
但我无法找到如何直接在 httpd.conf 文件中修改它
【问题讨论】:
-
您找到解决方案了吗?在将一些 php/nusoap 文件传输到另一台服务器时遇到同样的问题:(
标签: soap apache nusoap fsockopen