Hi, Thanks for the pointers. The minimum files that I found I needed to solve my above problems were as follows :- In the chroot, create /dev/urandom /etc/resolv.conf /lib64/libnss_dns_2.5.so Thanks Sylvia for the pointers ! Kind Regards, --blackmoguby blackmogu - Php-fpm Mailing List - English
I will add that to test everything without the chroot, I set up another php-fpm handler with the same nginx server, but no chroot declaration. Everything worked as expected. This tells me it's something to do with the chroot, but i'm at a loss as to what it could be.by blackmogu - Php-fpm Mailing List - English
Hi all, I have php-fpm running chrooted for a vhost of nginx. Everything works fine, except for the following:- If I do print_r(dns_get_record('www.av.com')); I get the expected dns resolving no problem. But if I do any other operation that rquires a dns lookup, I get this error Failed to connect socket: php_network_getaddresses: getaddrinfo failed: Name or service not known (code:by blackmogu - Php-fpm Mailing List - English
![]() |
![]() |
![]() |
![]() |
|