PHP_FPm is running as the www user, but the permissions on resolv.conf is readable to everyone. Perhaps I missed installing PHP extension required?
-----Original Message----- From: Aaron [mailto:def...@gmail.com] Sent: Thursday, December 20, 2012 3:53 PM To: Bentley, Dain Cc: misc@openbsd.org Subject: Re: NGINX wordpress error 5.2 On Thu, Dec 20, 2012 at 1:49 PM, Bentley, Dain <dbent...@nas.edu> wrote: > Hello Aaron, > I thought so too. Here is the error's I'm getting: > WP HTTP Error: 0: php_network_getaddresses: getaddrinfo failed: > temporary failure in name resolution AFAIK, php-fpm will use your resolv.conf in /etc, as it isn't bound by the chroot that nginx is. Perhaps the issue is there? > > It seems to be an issue with PHP unable to open a network connection? > > -----Original Message----- > From: Aaron [mailto:def...@gmail.com] > Sent: Thursday, December 20, 2012 3:48 PM > To: Bentley, Dain > Cc: misc@openbsd.org > Subject: Re: NGINX wordpress error 5.2 > > On Thu, Dec 20, 2012 at 1:45 PM, Bentley, Dain <dbent...@nas.edu> wrote: >> Hello all, >> I've configured a wordpress site on NGINX/OpenBSD 5.2/php_fpm. >> It works fine but I seem to have problems installing plugins and getting >> information from RSS feeds because the wordpress API can't seem to resolve >> hostnames. >> >> I suspect it has something to do with the fact NGINX is chrooted so I tried >> to move the resolv.conf over but nothing. Is there anything I need to move >> over to the /var/www directory to get name resolution working correctly with >> my web apps? > > Copying /etc/resolv.conf to /var/www/etc/resolv.conf should be all that is > required.