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 1mCViI-0006FY-Ea for pgsql-general@arkaria.postgresql.org; Sat, 07 Aug 2021 23:26:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mCViG-0000rI-Hm for pgsql-general@arkaria.postgresql.org; Sat, 07 Aug 2021 23:26:44 +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 1mCViG-0000r9-8n for pgsql-general@lists.postgresql.org; Sat, 07 Aug 2021 23:26:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCViA-0003CP-37 for pgsql-general@lists.postgresql.org; Sat, 07 Aug 2021 23:26:43 +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 177NQbEE2853519; Sat, 7 Aug 2021 19:26:37 -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 23:11:17 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2853517.1628378797.1@sss.pgh.pa.us> Date: Sat, 07 Aug 2021 19:26:37 -0400 Message-ID: <2853518.1628378797@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ourdiaspora writes: > psql -d cpacweb -h 127.0.0.1 -U cpaca > psql: could not connect to server: Connection refused > Is the server running on host "127.0.0.1" and accepting > TCP/IP connections on port 5432? Hm --- this suggests that you've got a kernel packet filter (i.e. software firewall) that is not passing traffic for 5432. It's not very clear how it worked before if that were in place previously, but since you've said zero about what the working configuration looked like, that's the best I've got. regards, tom lane