X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A5E183AC03B for ; Wed, 15 Dec 2004 16:59:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13593-03 for ; Wed, 15 Dec 2004 16:59:54 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8C68A3AC3C3 for ; Wed, 15 Dec 2004 16:59:51 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id iBFGxisX011517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Dec 2004 09:59:47 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id iBFGxiVn014902; Wed, 15 Dec 2004 09:59:44 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id iBFGxhLM014901; Wed, 15 Dec 2004 09:59:43 -0700 (MST) (envelope-from mfuhr) Date: Wed, 15 Dec 2004 09:59:43 -0700 From: Michael Fuhr To: Wang Jun Cc: pgsql-admin@postgresql.org Subject: Re: [Re]:User Admin in pgsql Message-ID: <20041215165943.GA1266@winnie.fuhr.org> References: <1103114537.8185.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1103114537.8185.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/146 X-Sequence-Number: 15732 On Wed, Dec 15, 2004 at 08:42:17PM +0800, Wang Jun wrote: > I have modified my pg_hda.conf as the DOC said, and I can login with my > password use "psql" in terminal. But it still remains a problem that I > can't acess to my database through webclients such as PhpPgAdmin and my > other phpclient. What's the exact error message? What's different between the psql connections and the PHP connections? One possibility is that psql is using a local (Unix socket) connection and PHP is using a host (TCP/IP) connection, and the server isn't accepting TCP/IP connections on the required interface. Have you looked at the tcpip_socket and virtual_host settings in postgresql.conf? Be sure to restart PostgreSQL if you change anything. The "Client Authentication" and "Server Run-time Environment" chapters of the documentation describe how to configure pg_hba.conf and postgresql.conf. -- Michael Fuhr http://www.fuhr.org/~mfuhr/