pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Mark Tessier <mt@open2web.com>
To: pgsql-admin@postgresql.org
Subject: Re: db connection fails
Date: Mon, 1 Jul 2002 13:34:54 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGMEOGFDAA.nickf@ontko.com> (raw)
In-Reply-To: <20020629154106.084e7ae3.mt@open2web.com>

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)
>
>






view thread (5+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGMEOGFDAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGMEOGFDAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGMEOGFDAA.nickf@ontko.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, mt@open2web.com
  Subject: Re: db connection fails
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGMEOGFDAA.nickf@ontko.com>
  References: <20020629154106.084e7ae3.mt@open2web.com> <NEBBLAAHGLEEPCGOBHDGMEOGFDAA.nickf@ontko.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox