Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: php_network_getaddresses: getaddrinfo failed: Name or service not known; Code: 0  (Read 3489 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
An attempt to download a snapshot from Web Presence Builder GUI fails with the below error:

Code: [Select]
Internal Parallels Presence Builder error. File: /opt/psa/admin/externals/Zend/Http/Client/Adapter/Socket.php; Line: 235 Message: Unable to Connect to tcp://www.domain.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known; Code: 0
Cause

The issue occurs in case if Plesk server fails to resolve the hostname for the specified domain. This may occur in case if DNS is handled externally, not by Plesk service.

Resolution

Add the corresponding domain to the hosts file on a server:

Code: [Select]
echo <domain_ip_address> domain.com www.domain.com >> /etc/hosts
Where the is the IP address which is assigned to the domain which causes the issue in Plesk Panel.

Thank you,