Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id B3717476009 for ; Tue, 2 Jul 2002 09:43:48 -0400 (EDT) Mailbox-Line: From nickf@ontko.com Tue Jul 2 09:43:48 2002 Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by postgresql.org (Postfix) with ESMTP id 80174475F7B for ; Tue, 2 Jul 2002 08:27:54 -0400 (EDT) Received: from 1cust144.tnt2.richmond.in.da.uu.net ([63.26.248.144] helo=nick) by avocet.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 17PMl9-0003PB-00; Tue, 02 Jul 2002 08:27:56 -0400 Reply-To: From: "Nick Fankhauser" To: "Mark Tessier" Cc: "pgsql-admin" Subject: Re: db connection fails Date: Tue, 2 Jul 2002 07:31:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <20020701152946.347c987c.mt@open2web.com> X-Spam-Status: No, hits=0.5 required=5.0 tests=IN_REP_TO,KNOWN_BAD_DIALUPS,RCVD_IN_OSIRUSOFT_COM version=2.30 X-Spam-Level: X-Archive-Number: 200207/23 X-Sequence-Number: 4710 > > Have you tried doing a network connection with your "apache" user? (su - > > apache; psql -h localhost group3.) > > Yes, I've tried it and get the following: > > psql: could not connect to server: Connection refused > Is the server running on host 192.168.1.2 and accepting > TCP/IP connections on port 5432? This is a useful clue. It suggests that your code may be fine and that the problem is in the networking or authentication setup. (You're using TCP/IP even if you are on the same box.) If you haven't already done so, take a look at your pg_hba.conf file. Info on how to set it up can be found here: http://www.postgresql.org/idocs/index.php?client-authentication.html -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/