这是与https://stackoverflow.com/questions/3985115/nusoap-fsockopen-error-couldnt-open-socket-connection-to-server-error-13
我想我无法让我的PHP应用程序访问networking。 报告的错误在上面的链接。
http://www.linuxforums.org/forum/red-hat-fedora-linux/46840-fsockopen-error-13-permission-denied.html中提出的解决scheme是:
防火墙在我的服务器上启用:策略types是有针对性的,强制执行当前被检查,HTTPD脚本连接到networking是不允许的。
其中:桌面>系统设置>安全级别> SELinux> httpd>未连接到networking的HTTPD脚本。 我检查了它,现在正在工作。
我怎样才能改变httpd.conf来做到这一点?
我部分解决了我的问题。
http://fedoraproject.org/wiki/SELinux/apache
httpd scripts by default are not allowed to connect out to the network. This would prevent a hacker from breaking into you httpd server and attacking other machines. If you need scripts to be able to connect you can set the httpd_can_network_connect boolean on. setsebool -P httpd_can_network_connect 1
我运行这个命令,我的脚本现在运行正常,但我不知道如果这个设置将被保留,如果我重新启动服务器/ Apache。 有谁知道我必须做什么使这是一个“永久”设置?