+I had this problem couple of days back when i changed my old server with new one.
+
+problem was php_network_getaddress: getaddrinfo failed.
+
+This can be resolved by addin following entry in your hosts file
+
+127.0.0.1 yourdomainname:80
+
+
+you can replace yournamedomain for eg. aniketmehta.com or anything else and port num on which your webserver is receiving requests for your domain name
+
+typical path for hosts file on windows is
+
+C:\WINDOWS\system32\drivers\etc
+
+add above entry and problem will be resolved.
+
+This can be bug in php since i was setting this up on windows server with dns installed on this server. But php was not able to find it by default.