SoapFault exception: Could not connect to host

后端 未结 27 1640
-上瘾入骨i
-上瘾入骨i 2020-12-01 07:47

Sometimes fail to call the web service.

This problem happens all the time.

What could be the problem?

Error:
    SoapFault exception: [HTTP]          


        
27条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 08:28

    In my case, disabled SELINUX allow PHP to call my WebService. I run PHP in FPM with Apache2

    SELinux status :

    # sestatus
    

    Disable SELinux :

    setenforce 0

    Enable SELinux :

    # setenforce 1
    

    Permanent disable :

    edit this file /etc/selinux/config
    

提交回复
热议问题