Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id B74A74758E9 for ; Mon, 1 Jul 2002 14:36:36 -0400 (EDT) Mailbox-Line: From nickf@ontko.com Mon Jul 1 14:36:36 2002 Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id B6D354758DE for ; Mon, 1 Jul 2002 14:36:35 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id NAA08204; Mon, 1 Jul 2002 13:31:35 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "Mark Tessier" , Subject: Re: db connection fails Date: Mon, 1 Jul 2002 13:34:54 -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) In-Reply-To: <20020629154106.084e7ae3.mt@open2web.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Spam-Status: No, hits=-4.1 required=5.0 tests=IN_REP_TO,X_AUTH_WARNING version=2.30 X-Spam-Level: X-Archive-Number: 200207/7 X-Sequence-Number: 4694 Mark - A few random thoughts- When we installed Apache, the user it ran under by default was "www-data". Are you sure it is running using "apache"? Have you tried doing a network connection with your "apache" user? (su - apache; psql -h localhost group3.) Log file locations may vary by OS flavor, but in Debian, you can find a log in /var/log/postresql.log. You may have to turn on logging in postgresql.conf. -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/ > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Mark Tessier > Sent: Saturday, June 29, 2002 2:41 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] db connection fails > > > I get a script error when trying to connect to postgres. It fails > in the following part of the script: > > PgDatabase conn ("host=localhost dbname=group3"); > > if (conn.ConnectionBad()) > { > ... > } > > /var/log/messages shows > > authentication failure; logname=capmag uid=502 euid=0 tty= ruser > = rhost= user=postgres > > As "capmag" user with DBCREATE privileges, created db called > group3. As I'm accessing group3 via html and C++ script in > cgi-bin, I've created a user named "apache" with grant all > priviledges in group3. > > > Mark > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > >