pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Where to troubleshoot phpPgAdmin login issues?
2+ messages / 2 participants
[nested] [flat]

* Where to troubleshoot phpPgAdmin login issues?
@ 2017-11-28 20:06  Robert Gordon <rgordon@onetechbeyond.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Robert Gordon @ 2017-11-28 20:06 UTC (permalink / raw)
  To: pgsql-general

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?

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Where to troubleshoot phpPgAdmin login issues?
@ 2017-11-28 20:18  Steve Atkins <steve@blighty.com>
  parent: Robert Gordon <rgordon@onetechbeyond.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Steve Atkins @ 2017-11-28 20:18 UTC (permalink / raw)
  To: pgsql-general


> 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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-11-28 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-28 20:06 Where to troubleshoot phpPgAdmin login issues? Robert Gordon <rgordon@onetechbeyond.com>
2017-11-28 20:18 ` Steve Atkins <steve@blighty.com>

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