Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJmLE-0007yk-UA for pgsql-general@arkaria.postgresql.org; Tue, 28 Nov 2017 20:18:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJmLD-0001fB-S8 for pgsql-general@arkaria.postgresql.org; Tue, 28 Nov 2017 20:18:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJmLD-0001f1-Kj for pgsql-general@lists.postgresql.org; Tue, 28 Nov 2017 20:18:51 +0000 Received: from mail.wordtothewise.com ([2001:470:1:6d::9a]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eJmL8-0002CB-EV for pgsql-general@postgresql.org; Tue, 28 Nov 2017 20:18:50 +0000 Received: from satsuke.wordtothewise.com (204.11.227.194.static.etheric.net [204.11.227.194]) by mail.wordtothewise.com (Postfix) with ESMTPSA id 6F6F023379 for ; Tue, 28 Nov 2017 12:19:22 -0800 (PST) From: Steve Atkins Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Where to troubleshoot phpPgAdmin login issues? Date: Tue, 28 Nov 2017 12:18:43 -0800 References: To: "pgsql-general@postgresql.org" In-Reply-To: Message-Id: <60CC5306-6228-45BE-B84D-AEEAFCB4DFAC@blighty.com> X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 28, 2017, at 12:06 PM, Robert Gordon = wrote: >=20 > I am getting =E2=80=9CLogin failed=E2=80=9D errors when attempting to = log into phpPgAdmin as user =E2=80=98postgres=E2=80=99. 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 > =20 > OS: CentOS 7 > PostgreSQL: 9.6.6 > pg_hba.conf settings for access: > # TYPE DATABASE USER ADDRESS METHOD > =20 > # "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