You are not logged in.
Pages: 1
I'm using PHP with Apache but for some reason PHP cannot resolve domain names:
file_get_contents('http://google.com')
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
The same works fine from CLI.
What could be the problem?
My system is up to date.
Last edited by Ree (2014-05-13 08:19:37)
Offline
I'm having the same problem. Did you manage to fix this yet by any chance?
Offline
Same here, do you have a solution for that?
I'm pretty sure I just have to install a package or change something in the php.ini, but I don't know what...
Offline
Found it!
You need to enable the extension socket.so in php.ini.
Offline
Pages: 1