Re: Apache chroot and webmail - what is it trying to use?
hosts and resolv.conf seemed to do the trick. Thanks much guys! Wijnand Wiersma wrote: Sometimes adding a etc/hosts file helps in the chroot. I hope this helps. Wijnand -- Matthew S Elmore dbTechnology Inc.Tuscaloosa, AL www.dbtech.net (205) 556-9020
Re: Apache chroot and webmail - what is it trying to use?
On Fri, Jun 03, 2005 at 07:48:04AM +1000, Zoong PHAM wrote: > > Probably resolv.conf. > > and /etc/hosts. Whatever you're running chrooted, the following files in /etc are good candidates for your ${chroot}/etc: group localtime passwd pwd.db services hosts master.passwd protocols resolv.conf spwd.db Of course, *passwd* et al should be created from scratch. Ciao, Kili
Re: Apache chroot and webmail - what is it trying to use?
Matthew S Elmore wrote: Hello misc@, I am having a problem getting a webmail package (InstantWebMail) to work properly under OpenBSD 3.7 in the chroot. It is a simple PHP application that connects directly to a POP server. Everything is installed from packages. When it tries to connect to the server, it outputs this error: fsockopen(): php_network_getaddresses: getaddrinfo failed: non-recoverable failure in name resolution I cannot tell what resource it is trying to access. Can anyone give me a pointer on where to look? Thanks much! Matt I'm not familiar with InstantWebMail, but it sounds like you've got it set to connect to a POP server by hostname rather than IP. Either change it to an IP in the config, if applicable, or better yet, copy /etc/resolv.conf into the chroot (/var/www/etc). I'm willing to bet that's the problem... --psi0nik
Re: Apache chroot and webmail - what is it trying to use?
On Thursday, 2 June 2005 at 22:28:13 +0100, Stuart Henderson wrote: > > > >I cannot tell what resource it is trying to access. > > Probably resolv.conf. and /etc/hosts. HTH, Zoong
Re: Apache chroot and webmail - what is it trying to use?
Matthew S Elmore wrote: > I am having a problem getting a webmail package (InstantWebMail) > to work properly under OpenBSD 3.7 in the chroot. It is a simple > PHP application that connects directly to a POP server. > Everything is installed from packages. > > When it tries to connect to the server, it outputs this error: > > fsockopen(): php_network_getaddresses: getaddrinfo failed: > non-recoverable failure in name resolution > > I cannot tell what resource it is trying to access. man getaddrinfo tells you what that function does. There is an error in the name resolution. You are in a chroot I bet you have to copy /etc/resolv.conf to the chroot :-) # Han
Re: Apache chroot and webmail - what is it trying to use?
My guess is you need to put a copy of /etc/resolv.conf in the apache chroot (as in, /var/www/etc/resolv.conf), because your webmail application is trying to resolve the hostname for the pop server. If you are using a hostname, try an IP, if they are on the same box, tell it to use 127.0.0.1 for the pop server, so then you don't have to worry about using encrypted pop. Jason On 6/2/05, Matthew S Elmore <[EMAIL PROTECTED]> wrote: > Hello misc@, > > I am having a problem getting a webmail package (InstantWebMail) to work > properly under OpenBSD 3.7 in the chroot. It is a simple PHP application > that connects directly to a POP server. Everything is installed from > packages. > > When it tries to connect to the server, it outputs this error: > > fsockopen(): php_network_getaddresses: getaddrinfo failed: > non-recoverable failure in name resolution > > I cannot tell what resource it is trying to access. > > Can anyone give me a pointer on where to look? > > Thanks much! > > Matt > > > -- > > Matthew S Elmore > dbTechnology Inc.Tuscaloosa, AL > www.dbtech.net (205) 556-9020
Re: Apache chroot and webmail - what is it trying to use?
--On 02 June 2005 16:09 -0500, Matthew S Elmore wrote: When it tries to connect to the server, it outputs this error: fsockopen(): php_network_getaddresses: getaddrinfo failed: non-recoverable failure in name resolution I cannot tell what resource it is trying to access. Probably resolv.conf.
Apache chroot and webmail - what is it trying to use?
Hello misc@, I am having a problem getting a webmail package (InstantWebMail) to work properly under OpenBSD 3.7 in the chroot. It is a simple PHP application that connects directly to a POP server. Everything is installed from packages. When it tries to connect to the server, it outputs this error: fsockopen(): php_network_getaddresses: getaddrinfo failed: non-recoverable failure in name resolution I cannot tell what resource it is trying to access. Can anyone give me a pointer on where to look? Thanks much! Matt -- Matthew S Elmore dbTechnology Inc.Tuscaloosa, AL www.dbtech.net (205) 556-9020