pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: ourdiaspora <ourdiaspora@protonmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: php connection failure
Date: Sat, 7 Aug 2021 17:51:45 -0700
Message-ID: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com> (raw)
In-Reply-To: <tkUCMUw712K5m1iI6JdN31r7VnT4ZZYWXsFtsa5NsB5qN7SydCd8eFAtlXyyd5PRGkhxO8Kkso1lE1wEjFYPSfj-ewJcD0d0mPKyRRA8gkE=@protonmail.com>
References: <rzszV54MMnHHEeW_3AqpkJKS_lMTEZUq_D6WR9JyfSMlgX76QeWjgy_H8YzslU2hvQef-XR2YBSNCMZS4CaJABdZp3uRR7FTU9MBqgLdEhw=@protonmail.com>
	<d9d1d112-16d8-c92b-981e-4c14aaa906e5@aklaver.com>
	<YkLdfOX_3gv9n7MfrpTel4LhjQiTtv30opOMkZ3vwMcnfK14ZXCMYdxYBQdEIJxbb4YS8fhBi9FdLocsw81gCAZ08f0v3UvdVdhWU3r1-bg=@protonmail.com>
	<fc2ad2b8-6b8f-8eb1-ad8f-c55a503eb2c4@aklaver.com>
	<Zg_1LULyXJHutjLddDrqHhkIzu2OvGAiA9IPU6wyqgZpDOIuc4zjsqvwLCfoumyOHYlza3JH6yJ_VQWFtHK8eByyBm4pq-wHNONy9KSq144=@protonmail.com>
	<af141f45-c4e4-3468-fb7a-f587873c978e@aklaver.com>
	<ZV4khnVKWjnQRwgbKLOy30bqwjY1ZQs2j08fEc7wjHafd1rXOUTnuzGvBfcy4fAm0P7H6zOxCSgZAG0nyyEPvDRoLj93mm_hg_oHUtw7tr8=@protonmail.com>
	<a2724c54-be07-99cf-1ebc-2c978e0a5da7@aklaver.com>
	<tkUCMUw712K5m1iI6JdN31r7VnT4ZZYWXsFtsa5NsB5qN7SydCd8eFAtlXyyd5PRGkhxO8Kkso1lE1wEjFYPSfj-ewJcD0d0mPKyRRA8gkE=@protonmail.com>

On 8/7/21 5:36 PM, ourdiaspora wrote:
> 
> On Sunday, August 8th, 2021 at 1:02 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> 
>> What did you change listen_addresses from?
>>
> 
> New line; same line had hash (#) to comment out.
> 
>> What if you do?:
>>
>> psql -d cpacweb -U cpaca
>>
> psql -d cpacweb  -U cpaca
> psql: FATAL:  Peer authentication failed for user "cpaca"
> 
> 

So from a previous post of yours I have pasted the pg_hba.conf file 
below my instructions:

1) Get rid of the first local line .

2) Then for the remaining local line below change peer to trust and 
restart Postgres.

3) Then  repeat:

psql -d cpacweb  -U cpaca



local   all             postgres                                peer



# 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            md5
# IPv6 local connections:
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            md5
#host    replication     postgres        ::1/128                 md5
local   cpacweb cpaca           trust


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (36+ messages)  latest in thread

Message-ID: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com>
Permalink:  ../79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com/
Also on:    postgresql.org/message-id/79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ourdiaspora@protonmail.com
  Subject: Re: php connection failure
  In-Reply-To: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com>
  References: <rzszV54MMnHHEeW_3AqpkJKS_lMTEZUq_D6WR9JyfSMlgX76QeWjgy_H8YzslU2hvQef-XR2YBSNCMZS4CaJABdZp3uRR7FTU9MBqgLdEhw=@protonmail.com> <d9d1d112-16d8-c92b-981e-4c14aaa906e5@aklaver.com> <YkLdfOX_3gv9n7MfrpTel4LhjQiTtv30opOMkZ3vwMcnfK14ZXCMYdxYBQdEIJxbb4YS8fhBi9FdLocsw81gCAZ08f0v3UvdVdhWU3r1-bg=@protonmail.com> <fc2ad2b8-6b8f-8eb1-ad8f-c55a503eb2c4@aklaver.com> <Zg_1LULyXJHutjLddDrqHhkIzu2OvGAiA9IPU6wyqgZpDOIuc4zjsqvwLCfoumyOHYlza3JH6yJ_VQWFtHK8eByyBm4pq-wHNONy9KSq144=@protonmail.com> <af141f45-c4e4-3468-fb7a-f587873c978e@aklaver.com> <ZV4khnVKWjnQRwgbKLOy30bqwjY1ZQs2j08fEc7wjHafd1rXOUTnuzGvBfcy4fAm0P7H6zOxCSgZAG0nyyEPvDRoLj93mm_hg_oHUtw7tr8=@protonmail.com> <a2724c54-be07-99cf-1ebc-2c978e0a5da7@aklaver.com> <tkUCMUw712K5m1iI6JdN31r7VnT4ZZYWXsFtsa5NsB5qN7SydCd8eFAtlXyyd5PRGkhxO8Kkso1lE1wEjFYPSfj-ewJcD0d0mPKyRRA8gkE=@protonmail.com> <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.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