Re: NGINX wordpress error 5.2

2012-12-20 Thread Aaron
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.



Re: NGINX wordpress error 5.2

2012-12-20 Thread Bentley, Dain
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

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.



Re: NGINX wordpress error 5.2

2012-12-20 Thread Aaron
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.



Re: NGINX wordpress error 5.2

2012-12-20 Thread Bentley, Dain
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.



Re: NGINX wordpress error 5.2

2012-12-20 Thread frantisek holop
hmm, on Thu, Dec 20, 2012 at 03:58:53PM -0500, Bentley, Dain said that
 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?

php_fpm when installed from the ports is also running chroot
by default IIRC.

-f
 
 
 
 -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.

-- 
how much can i get away with and still go to heaven?



Re: NGINX wordpress error 5.2

2012-12-20 Thread Bentley, Dain
You're correct, it is.  The php-fpm.conf points to /var/www.  

From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of frantisek 
holop [min...@obiit.org]
Sent: Thursday, December 20, 2012 9:19 PM
To: misc@openbsd.org
Subject: Re: NGINX wordpress error 5.2

hmm, on Thu, Dec 20, 2012 at 03:58:53PM -0500, Bentley, Dain said that
 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?

php_fpm when installed from the ports is also running chroot
by default IIRC.

-f



 -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.

--
how much can i get away with and still go to heaven?