What is the meaning of "php_network_getaddresses: getaddrinfo failed"?
when i'm using memcache, i found this "What is the meaning of "php_network_getaddresses: getaddrinfo failed"?" appears when running the methods of memcache.
What is the meaning of "php_network_getaddresses: getaddrinfo failed"?
when i'm using memcache, i found this "What is the meaning of "php_network_getaddresses: getaddrinfo failed"?" appears when running the methods of memcache.
That usually means your DNS resolution
is not working correctly. PHP cannot get the ip-address for hostnames used in the Memcache functions.
Your options
use ip-addresses
instead of hostnamesExample
Memcache::connect("1.2.3.4"); // replace with correct ip
Memcache::getServerStatus("1.2.3.4"); // --- '' ---
// etc other functions using hostname