php Fix: php_network_getaddresses: getaddrinfo failed: Name or service not known

php Fix: php_network_getaddresses: getaddrinfo failed: Name or service not known

for our case, it is just that, we are running php-fpm in chroot. and hence it does not know how to do network address resolve etc.

fix:

In the chroot, make sure to satisfy the following:

/dev/urandom
/etc/resolv.conf
/lib64/libnss_dns_2.5.so

Leave a Reply

Your email address will not be published. Required fields are marked *

12 − two =