Author Topic: php_network_getaddresses: getaddrinfo failed  (Read 8304 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
php_network_getaddresses: getaddrinfo failed
« on: August 16, 2014, 02:24:39 AM »
Hi , I have a problem after installing the panel and Created a site account and pointed my domain A recored to server ip ,

That the error message which showed up to me

php_network_getaddresses: getaddrinfo failed: Name or service not known

Is there any solution ?

Offline
*
Re: php_network_getaddresses: getaddrinfo failed
« Reply #1 on: August 16, 2014, 05:45:47 AM »
you should check you php file
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: php_network_getaddresses: getaddrinfo failed
« Reply #2 on: August 16, 2014, 09:22:51 AM »
That script worked perfectelly on Cpanel server and test too in localhost , the problem is from the server belive in me :/

Offline
*
Re: php_network_getaddresses: getaddrinfo failed
« Reply #3 on: August 16, 2014, 03:57:42 PM »
you will need to google this error message.

One of the answers, but you need to check all possible solutions:


Quote
“php_network_getaddresses: getaddrinfo failed: Name or service not known”
This issue is typically caused by the Apache/PHP host unable to contact the DNS server.

The first thing to check is to see if you can ping the remote host using console.

If no, then your primary name server on /etc/resolv.conf  is not working. Find a working DNS and restart Apache.
    If yes, then Apache is still connecting to the broken DNS server. You should try restarting Apache to see if it refreshes the DNS server listing in /etc/resolv.conf.

Other suggestions to fixing this are:
1) Making sure there is an entry inside /etc/hosts for your localhost
2) Firewall rules
3) Manually entering the IP (last resort) You shouldn’t enter the IP since it may change, especially if its a host that you are not in control over.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services