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 1g3PL8-0004R7-TI for pgsql-general@arkaria.postgresql.org; Fri, 21 Sep 2018 17:35:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g3PL7-000391-5D for pgsql-general@arkaria.postgresql.org; Fri, 21 Sep 2018 17:35:37 +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 1g3PL6-00038u-Qt for pgsql-general@lists.postgresql.org; Fri, 21 Sep 2018 17:35:36 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g3PL3-0004ne-RY for pgsql-general@lists.postgresql.org; Fri, 21 Sep 2018 17:35:36 +0000 Received: by mail-wr1-x430.google.com with SMTP id j15-v6so9537718wrt.8 for ; Fri, 21 Sep 2018 10:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version:thread-index :content-language; bh=tAAkQ4MPE4fNvDm6qQdTy7uqkq2h5WnKajL31BzCoC4=; b=GmYYBuboDpN2XELjiLplR2ZMDRi3ulrLFtbEGv0Pa8UwzeBgRZ/oiMxZcy8u/LG8RO QHhITOSX6jycc0iXR0TLncoLUNLBOiCPPkwRtSVHfiYqI1ZRupdTOhcanLMcAcgnIhBI iZOFTwy57jX8Q7FQn09nlzjdpHxu9acYdpOElQP722rv5BXmw3wawljFNHx61mR2i9AI ABfRphiGHvKARIr4N2LK4oVOrU9ANB0kbPDIg1ZvHDfB85LEf+KZpXHmEpbABCP4qwHY +0JjystPmzlTF1Fvp7j8GM7WGIFoKfldA6HNOnxOLJSpj2qLjW/U52z4+PFGzHmUFA0o ORBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=tAAkQ4MPE4fNvDm6qQdTy7uqkq2h5WnKajL31BzCoC4=; b=H0jQXsj4McLY1lfCjSoC6r2F+pQLnrLiE2SfOxzC6aub47+k5iYBbXWGn7xw7jnlLC 0xd3VhG/fbSaeNkUtPogffadrw0sgOHXI/AU0XEZOrJiIc1l3b+tfYMdImO/Hcnyb/hE T/5/ysTVR1SEudkuQuDuYXQQYF72+wLRt68vedJhSXZDwDm9l723Kbf6et8Sjsx9w+b3 mJXHrc7jK40uE10JxF/f/YNjFIoi3P0HjxoFY9a89JrujR8mwVrVbraXDd0bUTIx/GaT CXM0kMdx9IXkn8jV8SxxCKTzYTmTSkVXgYEd40Zy4cvnsKKsUFLjc5vHW4RjYNQuinqR b4lg== X-Gm-Message-State: APzg51AC5jeHjkHg22sEJ7CeLxquGdXMEne5IoHPqHyGWTQ7WcrY0VT6 fI9KMjWBVJZx+cr0gGAPQiVNT3D/ X-Google-Smtp-Source: ANB0Vdb59BNmgNac/nCuJfDqH2CRPoexhYPh07eCfeL9T00NNuJQD992HzaLpSA5OmMYDu7rwOhn2w== X-Received: by 2002:adf:fe06:: with SMTP id n6-v6mr39970489wrr.171.1537551331908; Fri, 21 Sep 2018 10:35:31 -0700 (PDT) Received: from LAPTOPE7EH7MDP (167.221-30-62.static.virginmediabusiness.co.uk. [62.30.221.167]) by smtp.gmail.com with ESMTPSA id c15-v6sm3635967wmb.2.2018.09.21.10.35.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 10:35:30 -0700 (PDT) From: "Mark Williams" To: Subject: PostgreSQl, PHP and IIS Date: Fri, 21 Sep 2018 18:35:28 +0100 Message-ID: <000b01d451d1$7d50d090$77f271b0$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000C_01D451D9.DF15ADC0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdRR0QGEGkBv6yy7Q4W0isinLNIFPQ== Content-Language: en-gb List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_000C_01D451D9.DF15ADC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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? Regards, Mark ------=_NextPart_000_000C_01D451D9.DF15ADC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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?

 

Regards,

 

Mark

------=_NextPart_000_000C_01D451D9.DF15ADC0--