2010-10-21 74 views
1

我有一個在RHEL5/CentOS專用系統上使用NuSOAP的php應用程序。NuSOAP/fsockopen錯誤 - 無法打開套接字連接到服務器,錯誤(13):權限被拒絕

我乳寧到以下錯誤:

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

I found the problem was related to SELinux configuration.

The firewall is enabled on my server: policy type is targeted, enforcing current is checked and HTTPD scripts to connect to the network were not allowed.

Where: Desktop > System Settings > Security Level > SELinux > httpd > HTTPD scripts to connect to the network was unchecked. I checked it and it is working now.

但我不是能夠找到如何直接修改此在httpd.conf文件中

+0

你有沒有找到解決方案?有同樣的問題,我將一些php/nusoap文件轉移到另一臺服務器:( – alex 2011-04-12 14:23:16

回答

相關問題