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 1mDozV-00075f-LE for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 14:13:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDozU-0008Lm-J3 for pgsql-general@arkaria.postgresql.org; Wed, 11 Aug 2021 14:13:56 +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 1mDozU-0008H9-AG for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 14:13:56 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDozR-000685-RP for pgsql-general@lists.postgresql.org; Wed, 11 Aug 2021 14:13:55 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 3456E3200950; Wed, 11 Aug 2021 10:13:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 11 Aug 2021 10:13:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:from:to:cc:references:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=N sGv+tw1uG8U9W20v74sW9sNiGdtmmpXMnQMbN3/mBA=; b=EZdBL1DTv5qeV+IcY MkPMymMGfdvmE4TZO5JuCHgeou/+rmZsespG16+GhT1gG2W9x9ZGz9gpA4J8Z7pj pePfSVQpxioScyTzb0Rp5XT70UyJLBpe0i1uUY+botGE4UjE8Qkk9zz3YGo0fix5 dAi1LlhmhlK2MZF2psjyBZl2XvSZuCTcUBQxVYLdDHNlk6FOSrUmCWi6yurCAOeb 7IU1i9tdoWhSWc1FnM/zq7Pm2siqWffo+dpTQYO+gkElaW5MnTTgTrHASDz+4s4O dzBKKNzCWXtCSWZ4/jtvUYaKPGtp6AHrqncrOb4QGcu14cmExO366J4pS28y8UWj ckAjQ== 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=NsGv+tw1uG8U9W20v74sW9sNiGdtmmpXMnQMbN3/m BA=; b=vEo0sVqbh4wAfoNkaSzIDj3nrtgSMb3iBPObTohAofABX0FpBh8lbdfMX RiAZrgbUk6ialHswiwic+cLFvkNyVwbYjv2uh/UH/SrI0sPMHQqszKmoRSEUG06P Kuu9toUBhkV33lpqw1oMsQzRmcM0HqxISuPaN9J0IxxggO8/IdHNGc75FwWgugFN a+YCBC0viOuATeVn6cKahiORWZhsNY6ZMYBdlSLp1Ns12GV46v/1o0QhynSGlOx0 c8c25vdR9ny1MRgu0InkoKtBVmgPChhOQUEZ/qjLXSPbUEM5nAEdfLEe1YDFwnGF zOiBNSwtXtuGpqEGu8BzJK90F+ufw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkedugdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffhvfhfkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefhleekveehge ffgfekjeffhfdujeeukeeivefhudegkeelgfefgeevheefieeiteenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Aug 2021 10:13:50 -0400 (EDT) Subject: Re: php connection failure From: Adrian Klaver To: ourdiaspora Cc: "pgsql-general@lists.postgresql.org" References: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com> <5ae56ed6-ca48-b809-1e2d-85c36ca42f3e@aklaver.com> <15fdcfa5-dd32-a4bf-ee1f-3396393cc41f@aklaver.com> Message-ID: Date: Wed, 11 Aug 2021 07:13:49 -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: <15fdcfa5-dd32-a4bf-ee1f-3396393cc41f@aklaver.com> 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 7:09 AM, Adrian Klaver wrote: > 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? Should have added previously: Are you using some form of container/VM on the machine for either 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