From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 22:33:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C99B91065673 for ; Wed, 13 Aug 2008 22:33:06 +0000 (UTC) (envelope-from tamouh@mediumcube.net) Received: from ferrari.smallvillages.com (ferrari.smallvillages.com [209.172.38.230]) by mx1.freebsd.org (Postfix) with ESMTP id 852308FC20 for ; Wed, 13 Aug 2008 22:33:06 +0000 (UTC) (envelope-from tamouh@mediumcube.net) Received: from ([127.0.0.1]) with MailEnable ESMTP; Wed, 13 Aug 2008 17:33:25 -0400 From: "Tamouh H." To: "'FreeBSD Questions'" Date: Wed, 13 Aug 2008 17:33:35 -0400 Message-ID: <037401c8fd8c$3dca8370$6900a8c0@tamouh> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 thread-index: Acj9jD2NsgLShmAORiaw8Rs+A9VTLg== Subject: getaddrinfo() failed in Apache 2.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tamouh@mediumcube.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 22:33:06 -0000 Hi, I'm working on a problem with Apache 2.2 + PHP on FreeBSD 6.1 x86 Recently, we've upgraded from Apache 1.3 to v2.2 , and since then PHP is = unable to resolve hostnames unless they're specified in /etc/hosts . The = error we'd get would be: php_network_getaddresses: getaddrinfo failed: hostname nor servname = provided, or not known in /home/username/public_html/testphp.php on line = 2 This is for a simple function. We = know it is not a DNS problem, because if PHP is setup as a CGI function, = it works fine. It is only in DSO mode that PHP malfunction like this. = We're also having no issues with our resolver for mail, ping or any = other services. Some people were pointing out that this is a fault of FreeBSD reaching a = maximum number of file descriptors. Others said this can't be resolved = until upgraded to FBSD 6.3 which we are not planning to go through. = There are several hundred domains hosted on the server, but all was = working fine with Apache 1.3. Our VNODES are a bit high, but haven't seen any errors: server# sysctl kern.maxvnodes kern.maxvnodes: 100000 server# sysctl vfs.numvnodes vfs.numvnodes: 84805 server# sysctl kern.maxfiles kern.maxfiles: 65536 kern.maxfilesperproc: 32767 Anyone be able to guide me in the right direction here? Thanks,=20 Tamouh