Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3k68-0001kG-QT for pgsql-general@arkaria.postgresql.org; Sat, 22 Sep 2018 15:45:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g3k65-0006Cj-Sl for pgsql-general@arkaria.postgresql.org; Sat, 22 Sep 2018 15:45:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3k64-0006CD-3y for pgsql-general@lists.postgresql.org; Sat, 22 Sep 2018 15:45:29 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3k5t-0002fh-8T for pgsql-general@lists.postgresql.org; Sat, 22 Sep 2018 15:45:27 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 439C32127F; Sat, 22 Sep 2018 11:45:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 22 Sep 2018 11:45:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=2kRvZnIyfZ6oBH0PASmzd7DoZPSUG 4CyFqTYdpy2T/U=; b=wUCDORVKHiAwcQDRNhaT6kJQrF2iV9yZSV3AYjvKg2/Jl a+r3ptLS6jHWNHiS6h/LBtzRji3FFAOGx5UGiNuir7uKLJwejqT1f8pKaS7At9uD TLNh/vmWEstFlG9WwXOqrI+Y70RxPNDm/UqIgNodFy/ud9g6dJmueolvgGhXfTH1 qbiZbrGy36Ep6X8CtT/QxpFBzhwbZMVOvgc/K0ZFFxuk+rkbQo4PPXAAjK3RKLrX cK2Jx1IrASNkAVwVpqVn4RGvJlXUnX6n1sc3iLMct7KvuZYZpeArYGYm/MKcaZIo Tc0AKtJjvUftpq8Quk/nrPHHC0yhsgc3SDaJIZAwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2kRvZn IyfZ6oBH0PASmzd7DoZPSUG4CyFqTYdpy2T/U=; b=crhcM7Qg6Os8DMuNoeR7Wl QtF3Z7J9heFIsxiOQUZ17S0BD5k/Xd0hnXbhAPEX2wNIPly2zgBnNntSley4QO6J weic4nJYcS/Sp11R8sq4fgaJNZw+4eo77s9D7A5TN3UwRMU+FChx+PLgsGmQjATK /mW46+IvB6nZTjohpsNvVgV0Ay0gz/wfgQC1dYdBtfR3Hh/8zpf0PUUAs7yJhlKm hZyfz8VNZ2aWbjCXCdwCE1ykUJWFfheH1Ng00rEWjUBlPX8dQNBk9Ckt6cNlrCkq 16Iz6tD8/gl2KPob9arKcOq7ZKjpr1E16sR0jloKzhsZLrm/z7kK+m+iLIKqV+ZQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 7F0C7E405A; Sat, 22 Sep 2018 11:45:14 -0400 (EDT) Subject: Re: PostgreSQl, PHP and IIS To: Mark Williams , pgsql-general@lists.postgresql.org References: <000b01d451d1$7d50d090$77f271b0$@gmail.com> <001c01d4525b$fc321830$f4964890$@gmail.com> From: Adrian Klaver Message-ID: <133bcc16-cb82-0d15-5b01-ea8444177e67@aklaver.com> Date: Sat, 22 Sep 2018 08:45:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <001c01d4525b$fc321830$f4964890$@gmail.com> 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: Precedence: bulk On 9/22/18 3:06 AM, Mark Williams wrote: > "Fatal error: Call to undefined function pg_connect". > > Obviously, that is to be expected if pgsql module is not loading. Went back over your previous post and saw: "I have copied the version of libpq.dll from the lib folder of the postgresql installation to the root folder of the PHP installation. I have added the bin folder of the postgresql installation to the Windows system search path. " I would say add the lib/ of the Postgres install to the search path. > > __ > > -----Original Message----- > From: Adrian Klaver > Sent: 21 September 2018 23:02 > To: Mark Williams ; > pgsql-general@lists.postgresql.org > Subject: Re: PostgreSQl, PHP and IIS > > On 9/21/18 10:35 AM, Mark Williams wrote: >> I have PHP v7.2.7 and PostgreSQL v10 with Windows IIS. >> >> I am trying to get this to work following any advice I have been able >> to find on the web, but with no success. My configuration so far is as > below. >> >> PHP.ini extension list includes both php_pdo_pgsql.dll and php_pgsql.dll. >> >> Both these dlls are located in the correct extensions directory >> according to phpinfo. >> >> According to phpinfo the Configuration File Path is "C:\Windows" and >> the Loaded Configuration File is "C:\Program Files\PHP\v7.2\php.ini". >> I have the same php.ini file at both locations. >> >> I have copied the version of libpq.dll from the lib folder of the >> postgresql installation to the root folder of the PHP installation. >> >> I have added the bin folder of the postgresql installation to the >> Windows system search path. >> >> Phpinfo shows that pdo_pgsql extension is loaded but not pgsql. >> >> I have also tried copying the dependent dlls (ssleay32.dll, >> libeay32.dll, libintl-8.dll, libiconv-2.dll) from the postgresql bin >> folder to the php root folder). >> >> Phpinfo show php_pdo_pgsql is enabled, but not php_pgsql.dll and an >> undefined function call error is displayed by php when I try and run >> any pg php functions. >> >> Can anyone please shed any light on what more I need to do? > > So what is the error you are getting? > > Or to put it another way, what is not happening? > >> >> Regards, >> >> Mark >> > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > -- Adrian Klaver adrian.klaver@aklaver.com