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 1mCVTn-0005yp-Ga for pgsql-general@arkaria.postgresql.org; Sat, 07 Aug 2021 23:11:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mCVTF-0006I1-62 for pgsql-general@arkaria.postgresql.org; Sat, 07 Aug 2021 23:11:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCVTE-0006Hs-Sn for pgsql-general@lists.postgresql.org; Sat, 07 Aug 2021 23:11:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCVTC-00043D-Hf for pgsql-general@lists.postgresql.org; Sat, 07 Aug 2021 23:11:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 177NB7e02852726; Sat, 7 Aug 2021 19:11:08 -0400 From: Tom Lane To: ourdiaspora cc: "pgsql-general@lists.postgresql.org" Subject: Re: php connection failure In-reply-to: References: Comments: In-reply-to ourdiaspora message dated "Sat, 07 Aug 2021 22:15:04 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2852724.1628377867.1@sss.pgh.pa.us> Date: Sat, 07 Aug 2021 19:11:07 -0400 Message-ID: <2852725.1628377867@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ourdiaspora writes: > The postgresql server was restarted, successfully. > listen_addresses = 'localhost' I believe on most machines, that would result in the postmaster only listening on 127.0.0.1, and ::1 if you're IPv6-enabled. If php is trying to connect to something else, like say the machine's external IP address, that could be your issue. regards, tom lane