Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCX2e-0007yn-Uk for pgsql-general@arkaria.postgresql.org; Sun, 08 Aug 2021 00:51:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mCX2d-0006v3-Gl for pgsql-general@arkaria.postgresql.org; Sun, 08 Aug 2021 00:51:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCX2c-0006uv-Nk for pgsql-general@lists.postgresql.org; Sun, 08 Aug 2021 00:51:51 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCX2a-0003vI-6U for pgsql-general@lists.postgresql.org; Sun, 08 Aug 2021 00:51:49 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 120395C0046; Sat, 7 Aug 2021 20:51:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 07 Aug 2021 20:51:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=e kkyjeWJK7vCu4YIUBudKWGsrRmpLckLCabHZYgY2AQ=; b=YXcalA0H0i95vB+Zh sIHsAO4Fw89frUQPq1kqNROd6+M2S46EoVP1CqLpPG+fMv/TZWAPqxZSzxZObjo+ 9diIDy8XeOWkXmlGB1LD7L1W2lCtdLD8gpb7vfQcIaHEsjE8UNWdtsn38IvJzzjs w/FjsrOClaQ0EML73Voe768Uz2+Yib3SGexGRZypPNstQ7DPfp3yXwMPhuSDF2/1 gyOSB0YNrUuXw9sIRMexSepKjmyg/VTsUpaEg762G/VMhxislW4gtMPrV8vEQCZf 2hFs0Islu6nKHUNr1iGc+XHM4qinNW/KHuZ79L54BR/8L2hnUt5RDcu70Tj3MmU9 l3sEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=ekkyjeWJK7vCu4YIUBudKWGsrRmpLckLCabHZYgY2 AQ=; b=smt+uLMBRKUJoYudX9Q43VqWOAr6v2WpG9VXAmuexvG3eEnvkCxx/aWWD nqFLyHnxJDJJADfX7LGC/M450Pluc5TktGAZEwGg9tzOzf/EqCD4m9RyuDtLUfYb GruGWqkix8Z2caQO+IuFPjdE5MHjJPb9byRpoCHnVB6Cj4isosnKh6PrshOJ2oBL auRNmf78NLWGjZUWxxwMAuoZBjCcBDZMknsD/XRG2lFYARmkMOg/5dkYZLRE5uN9 Ru39/SxLGecjq1cP9xqo8U2zj7PDUzDNHZ4rSpRcu+wk+1SwqYmKWFGfjHF7uVZ0 eYFzW1AdEKboBrmfyFwzL2InOsoQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeeggddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetjedvteffje euvdelieeffeehuedthffgvdfhhffhkedvudevgedvjedufefgveenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 7 Aug 2021 20:51:46 -0400 (EDT) Subject: Re: php connection failure To: ourdiaspora Cc: "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com> Date: Sat, 7 Aug 2021 17:51:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/7/21 5:36 PM, ourdiaspora wrote: > > On Sunday, August 8th, 2021 at 1:02 AM, Adrian Klaver 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