PHP error: php_network_getaddresses: getaddrinfo failed: (while getting information from other site.)

后端 未结 11 1131
时光说笑
时光说笑 2020-12-01 10:18

Trying to get information from an external source, I\'m receiving the following error:

Warning: php_network_getaddresses: getaddrinfo

11条回答
  •  生来不讨喜
    2020-12-01 10:58

    In the following httpd.conf file, configure the ServerName properly.

    /etc/httpd/conf/httpd.conf

    Like below:

    ServerName 127.0.0.1:80
    

    or

    ServerName sitename
    

    This resolved similar issue I was facing.

提交回复
热议问题