From: Steve Atkins <steve@blighty.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Where to troubleshoot phpPgAdmin login issues?
Date: Tue, 28 Nov 2017 12:18:43 -0800
Message-ID: <60CC5306-6228-45BE-B84D-AEEAFCB4DFAC@blighty.com> (raw)
In-Reply-To: <CY1PR11MB0377E839FE290F358AD917B5BD3A0@CY1PR11MB0377.namprd11.prod.outlook.com>
References: <CY1PR11MB0377E839FE290F358AD917B5BD3A0@CY1PR11MB0377.namprd11.prod.outlook.com>
> On Nov 28, 2017, at 12:06 PM, Robert Gordon <rgordon@onetechbeyond.com> wrote:
>
> I am getting “Login failed” errors when attempting to log into phpPgAdmin as user ‘postgres’. In what file path would I find the relevant log files, to try and identify why the login is being rejected?
Probably /var/lib/pgsql/data/pg_log or somewhere like that, if there's nothing obvious in /var/log.
You're not allowing connections from IPv4 localhost, though, and that's where I'd expect a sensibly configured phpPgAdmin to be trying to connect from (assuming it's on the same machine as the database).
Cheers,
Steve
>
> OS: CentOS 7
> PostgreSQL: 9.6.6
> pg_hba.conf settings for access:
> # TYPE DATABASE USER ADDRESS METHOD
>
> # "local" is for Unix domain socket connections only
> local all all peer
> # IPv4 local connections:
> #host all all 127.0.0.1/32 ident
> #host all all 127.0.0.1/32 md5
> host all all 192.168.101.1/32 md5
> # IPv6 local connections:
> #host all all ::1/128 ident
> host all all ::1/128 md5
> # Allow replication connections from localhost, by a user with the
> # replication privilege.
> #local replication postgres peer
> #host replication postgres 127.0.0.1/32 ident
> #host replication postgres ::1/128 ident
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-general@postgresql.org
Cc: steve@blighty.com
Subject: Re: Where to troubleshoot phpPgAdmin login issues?
In-Reply-To: <60CC5306-6228-45BE-B84D-AEEAFCB4DFAC@blighty.com>
References: <CY1PR11MB0377E839FE290F358AD917B5BD3A0@CY1PR11MB0377.namprd11.prod.outlook.com> <60CC5306-6228-45BE-B84D-AEEAFCB4DFAC@blighty.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