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 1mDovq-00071s-Iu for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 14:10:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDovp-000816-GJ for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 14:10:09 +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 1mDovo-00080x-HK for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 14:10:09 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDovi-0006yU-SK for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 14:10:08 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 907C63200941; Wed, 11 Aug 2021 10:09:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 11 Aug 2021 10:09:58 -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=M l8ImA08W64R8TodXlnaYtvCs5Gy/GNHyajF9bpUuCY=; b=EDI8u9rgl9/Wv/6YX WnK5yXZOqDk+92pT14NUqpkLJc2H4AIFl8xmm4z2IbFTDmjLKN4Fod0vEcrUB705 t2oJv581UutzUT9W+GnOxNxpYGvCk06jc4TM+sq4v2ZH/aYbuieJ7HlDquBTxVD7 wn8u3ztG9yHiaxI4MYsKcRZPJbH/DQ12w8y9xzHBL3g0Z/Y0qJNdXke/FZHgXB6B VgUj8dZotQunvT2Pl7y9munft2FDyQxEQDPNyYfosWzJvn9gWqTe2N2abxlkRCe5 b19d6CfJNATyMgeF5iXZP5if3kWoHLduiw6y66jlhQ+VS/utbFazio+/rMq/x1Dm qNNKg== 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=Ml8ImA08W64R8TodXlnaYtvCs5Gy/GNHyajF9bpUu CY=; b=b9cvd13WjZ9c4hU8BASb2r6pCax2mUcEaJ+Zqs7ADi3ha/DmJ/3LQ0WCN I++yZdRTnUlzselRyvll0qfgqnURf4FlWIZhq2GoEiQF4EfKJZ4vhUeHjtu7uUWv cLr7LTiU30Ur/PptAMgrad9vrHV5jTldBtQRYtMSybWImRkaxN1yQqFtRIbl3dbz lg94xiqM0gucMDnQZS5mKS4QHg/grSEGjgLFU4RtOG8VYY51p2auAcxUoI8oxfYJ ACi8pz9RaSLTn2+AZZaSC9DWiKT+QBXv3/xgWvxz4AxDu5ZGsQHobVaHelixehAh Rl+GklXJGA5csH4+8Oikmny0Ul7rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkedugdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefveefue egffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Aug 2021 10:09:56 -0400 (EDT) Subject: Re: php connection failure To: ourdiaspora Cc: "pgsql-general@lists.postgresql.org" References: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com> <5ae56ed6-ca48-b809-1e2d-85c36ca42f3e@aklaver.com> From: Adrian Klaver Message-ID: <15fdcfa5-dd32-a4bf-ee1f-3396393cc41f@aklaver.com> Date: Wed, 11 Aug 2021 07:09:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/11/21 4:09 AM, ourdiaspora wrote: > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > For sign-in today via commands below, the log file shows nothing new, only the old errors: > " > psql -d cpacweb -U cpacapsql (9.6.16) > Type "help" for help. > > cpacweb=> \q > psql -d cpacweb -h localhost -U cpaca Password for user cpaca: > psql (9.6.16) > SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off) > Type "help" for help. > > cpacweb=> \q > " > > The connection to postgresql seems OK now (thank you), but the php web page continues to fail to connect to the database: Is the Web server/PHP app on the same machine as the Postgres server? If it is on the same machine what happens if you do?: $dbconn = pg_connect("dbname=cpacweb user=cpaca") or die("Could not connect"); -- Adrian Klaver adrian.klaver@aklaver.com