X-Original-To: pgsql-admin@postgresql.org Received: from smtpout.mac.com (A17-250-248-85.apple.com [17.250.248.85]) by postgresql.org (Postfix) with ESMTP id 50686474E42 for ; Sat, 8 Mar 2003 09:54:13 -0500 (EST) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h28EsHx9005161 for ; Sat, 8 Mar 2003 06:54:17 -0800 (PST) Received: from mac.com ([24.27.50.174]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id HBFQQG00.A28 for ; Sat, 8 Mar 2003 06:54:16 -0800 Date: Sat, 8 Mar 2003 08:54:03 -0600 Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Problem connecting with PHP in OS X From: Eric Marsh To: pgsql-admin@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.551) X-Archive-Number: 200303/71 X-Sequence-Number: 7719 Good Morning, I've got a J2EE program I've been working on for some time that has been connected to a FrontBase DBMS. Well as a result of my spending some time exploring the open source world I've decided to to change database to PostgreSQL. I'm developing on Mac OS X and found a page on the Apple website describing how to set up PostgreSQL and then how to connect to it. I built and installed PostgreSQL and performed a couple simple operations to confirm that its working properly. Next, to simplify administration I followed the instructions to install PHP and phpPgAdmin. Using the simple example script I was able to connect to the database with PHP. When I tried to use phpPgAdmin I was getting fail to login errors. Poking around the PHP code I discovered that if I commented out a line that added "host=localhost" I was able to connect. Since the instructions I'm working off uses PHP 2.4.2 and PostgreSQL 7.2 and I'm using PHP 2.4.2 and PostgreSQL 7.3 I figured that the different version of PostgreSQL gives me a good place to start looking and as such I'm posting to this list rather than the PHP list. Does anyone have any idea why host=localhost is breaking my connection? Is there a configuration value I should be setting? Thanks, Eric Marsh