Unable to make php curl request with port number

后端 未结 6 871
一生所求
一生所求 2020-12-06 17:23

I am unable to make a php curl request with port number , without port number i am getting response properly.

Through terminal when i do curl http://www.sample.com

6条回答
  •  无人及你
    2020-12-06 17:43

    I went to server admin with this problem and he changed configuration in centos

    in folder /etc/sysconfig/

    he edited file selinux and change SELINUX=disabled and restated it.

    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    

    and my problem got solved.

提交回复
热议问题