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 1g3eoa-0000u6-Kt for pgsql-general@arkaria.postgresql.org; Sat, 22 Sep 2018 10:07:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g3eoY-00055L-15 for pgsql-general@arkaria.postgresql.org; Sat, 22 Sep 2018 10:07:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3eoX-00055E-JI for pgsql-general@lists.postgresql.org; Sat, 22 Sep 2018 10:07:01 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g3eoU-0004vw-7x for pgsql-general@lists.postgresql.org; Sat, 22 Sep 2018 10:07:00 +0000 Received: by mail-wr1-x444.google.com with SMTP id z3-v6so3239790wrr.13 for ; Sat, 22 Sep 2018 03:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=8r+AW1CWg4r+4mgiMad9sqBnBFfJiFB5/PjKoon5LHY=; b=KDffi/vKujiuJjd/SFdNHsJrLaEh+Ob8iUP/P5fSZPIUfg7w8x48tHhGYCwNzk6MW3 7rpUCHy8zO2dCDMj66ZTvbcEKzuSLG53NCOx9sr/8AoP1fTXlzIfMxC5s1WlJzmFR/OX q1pI1k98OAUEfJSR+bPpiD4DWFHbtBMyO7hXR/dSyLMiInHns2ogKD7/WRA32CHGf/k3 ndjPX3JVPVU6JZCjnewnB9FpzjURGZoR6NGGrk56fzvq+ef3cTPL37Rv5STbCDilOJiu tgIqsniZSv0LMTef1nRvoK5Hz+uxHJSaSGMjbz9ruc7PoDd3UpFQnE5dXp1+YDz0EsBj SYKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=8r+AW1CWg4r+4mgiMad9sqBnBFfJiFB5/PjKoon5LHY=; b=kYk9VsZwm5D3/jqcd45tFta63FQqEI22lqpg0fImM8iBgSMA0i8D4if61Uy6SAs9pb YmPqpdqTxSiGFj3TP+BDQAZMdBD/PIWFGaI8uE5ZtGR8GrDbRMXTltDohFUl0Vjh5cIu xaHY7MHFGpiS9MVqR1ZQN+0GqH85jv0pSDI5RHPNNdKAGQvhadhNIIZeKLJ5/AV9pfs1 VwTCUEY5SW1vuxrjW6jqVhi/2JDk9OZLzguvSM+Nq4ngEqoEE3pQBIXGfM5E6cvuOZae 0p758qWg1y8gAWv6Xhn5Z79kysUgunJ3CPs9mc4VjDKkQGHEeOj+zVYkHZOqkSg0rq18 gZPA== X-Gm-Message-State: ABuFfogjtl9evqbIirSQ156hmzGJYk/5OfHM9eho4CoUfwt2YdzkTaKI Xk39QyuuYmwkxcCxQ0kBDN8Ao+9p X-Google-Smtp-Source: ACcGV620po5kVd6/F89mv6wCQZOon9aUaOz/8TLFqIZQnkBOCMb+DMkMcxCtummDMSSNO3ADFW/7nQ== X-Received: by 2002:adf:9142:: with SMTP id j60-v6mr1518333wrj.180.1537610814787; Sat, 22 Sep 2018 03:06:54 -0700 (PDT) Received: from LAPTOPE7EH7MDP (167.221-30-62.static.virginmediabusiness.co.uk. [62.30.221.167]) by smtp.gmail.com with ESMTPSA id a37-v6sm67463220wrc.21.2018.09.22.03.06.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 03:06:53 -0700 (PDT) From: "Mark Williams" To: "'Adrian Klaver'" , References: <000b01d451d1$7d50d090$77f271b0$@gmail.com> In-Reply-To: Subject: RE: PostgreSQl, PHP and IIS Date: Sat, 22 Sep 2018 11:06:51 +0100 Message-ID: <001c01d4525b$fc321830$f4964890$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLpFnJJi4qlZIh18uBYPjmWGAZy1ADQoV9foswFtvA= Content-Language: en-gb List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Fatal error: Call to undefined function pg_connect". Obviously, that is to be expected if pgsql module is not loading. __ -----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