X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4C0549DCB86 for ; Wed, 21 Dec 2005 17:25:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19970-07 for ; Wed, 21 Dec 2005 17:25:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (unknown [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id B2D8F9DCA7C for ; Wed, 21 Dec 2005 17:25:23 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id BB0573983E; Wed, 21 Dec 2005 15:25:25 -0600 (CST) Date: Wed, 21 Dec 2005 15:25:25 -0600 From: "Jim C. Nasby" To: Scott Marlowe Cc: zhuge xiao , pgsql-admin@postgresql.org Subject: Re: Help Me ! Message-ID: <20051221212525.GH72143@pervasive.com> References: <43A7D28C.8040504@Rinaix.cn> <20051221200258.GF72143@pervasive.com> <1135195878.18741.28.camel@state.g2switchworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1135195878.18741.28.camel@state.g2switchworks.com> X-Operating-System: FreeBSD 6.0-RELEASE amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.048 required=5 tests=[AWL=0.048] X-Spam-Score: 0.048 X-Spam-Level: X-Archive-Number: 200512/254 X-Sequence-Number: 19974 On Wed, Dec 21, 2005 at 02:11:18PM -0600, Scott Marlowe wrote: > On Wed, 2005-12-21 at 14:02, Jim C. Nasby wrote: > > On Tue, Dec 20, 2005 at 05:44:44PM +0800, zhuge xiao wrote: > > > Is the server running locally and accepting connections on Unix domain > > > socket "/tmp/.s.PGSQL.5432"? > > > > So what are the permissions on /tmp/.s.PGSQL.5432? Can apache write to > > it? > > > > Actually, I think apache normally chroot's to ServerRoot (httpd.conf) > > when it starts. So you probably need to create a symlink from > > /tmp/.s.PGSQL.5432 to "ServerRoot"/tmp. > > My apache doesn't do this, and it's a pretty straight forward source > compile of whatever the latest version of the 2.x branch was late this > last summer. A coworker just confirmed that it in fact does not chroot by default. Which had I thought about it for 1/2 a second makes perfect sense, otherwise it would often have a heck of a time getting to /home/*/public_html. > However, I could see SELinux getting in the way. Definately. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461