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 1g4226-0007Kz-Sm for pgsql-general@arkaria.postgresql.org; Sun, 23 Sep 2018 10:54:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4224-0004A5-6x for pgsql-general@arkaria.postgresql.org; Sun, 23 Sep 2018 10:54:32 +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 1g4223-00049y-PR for pgsql-general@lists.postgresql.org; Sun, 23 Sep 2018 10:54:32 +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 1g421w-0003gH-Sp for pgsql-general@lists.postgresql.org; Sun, 23 Sep 2018 10:54:30 +0000 Received: by mail-wr1-x444.google.com with SMTP id u12-v6so16844024wrr.4 for ; Sun, 23 Sep 2018 03:54:24 -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=U9GPiZuRTqLA5fj8MmZmV9dHRU8+D4bV44O+2QK4f0E=; b=Xlm8SmTATyoJIofj61NUGxvxoWLWlJY6eBu3GzRRE8A+rgs/GZjkuJ7y2t4x0BlLDQ 50Dd3C22zXxsyNFsMuXZ9GRqEcrMjPOIQrSG3OpzvNlL1BVeKlak1OWIpDCj9596aDqP ObabF5UJiT7NB43/y4Kewedm5luamhepG0espRDSRs9Z4B4NNqJ5auBm0Xhzf0jUjJOe ajBbDXyPhBcFysmyuWw16CRDQZ93HAJqMc+UVFyKweJp6TMdSepBuRgNYzGqGb5cUrah ZayFC+qolOqFVimBX7qDxo+9lPGGldzkl6N1ox/dZkqjO/jbxIRBrAjRWi+v4VYI0JpU EVtw== 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=U9GPiZuRTqLA5fj8MmZmV9dHRU8+D4bV44O+2QK4f0E=; b=ulEJ/TAWQOAt/+Ksz5vSYH6Bf6te/1iQP5ZeHHiZaULrEuuZ3u5+ARfizXBGEy/FYc pqIUsgL8zVBe21iReeSxlbCB22EudWhKDNllga04tgCybU/lqrDxIOZANIgCTKbMpmAN R6fznLPoeZ7mp3V6SNAiE9V/7FjAz42lakyZx9WNtBqTKz6khb9OhbQMiCSzEVayAEcr cy6hMGge6L0lpYrPIBNVKX4mtyWOMSWlO6sW/ZZC0TckCsJiRIDACW3J1Gpq6UvAr8rO 2z0FEYpPWz+ePdl2e9wv2ho4U0Ps9GdZ9MnXaIuCKoRYCYw5+ibtguW/WrK+L0MBV/TF y1Qg== X-Gm-Message-State: ABuFfogONjBnJmJvFLw+LZpTKh5qRi4bWzOTA9WMcCj+zvLGek7V3ghl ohk05Jn4jIgbrdpXaYwrfKc= X-Google-Smtp-Source: ACcGV625eDzxclA8K7BEUb3FWQrhaOlPk7itC/mczSl8hWoXDuh9ZbPPphgqjyxAHuxEnhzz3vThQw== X-Received: by 2002:adf:8206:: with SMTP id 6-v6mr4602100wrb.160.1537700063283; Sun, 23 Sep 2018 03:54:23 -0700 (PDT) Received: from LAPTOPE7EH7MDP (167.221-30-62.static.virginmediabusiness.co.uk. [62.30.221.167]) by smtp.gmail.com with ESMTPSA id b74-v6sm17493000wma.8.2018.09.23.03.54.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 03:54:22 -0700 (PDT) From: "Mark Williams" To: "'Adrian Klaver'" , , References: <000b01d451d1$7d50d090$77f271b0$@gmail.com> <001c01d4525b$fc321830$f4964890$@gmail.com> <133bcc16-cb82-0d15-5b01-ea8444177e67@aklaver.com> In-Reply-To: <133bcc16-cb82-0d15-5b01-ea8444177e67@aklaver.com> Subject: RE: PostgreSQl, PHP and IIS Date: Sun, 23 Sep 2018 11:54:20 +0100 Message-ID: <003e01d4532b$c8a8ecc0$59fac640$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLpFnJJi4qlZIh18uBYPjmWGAZy1ADQoV9fAVqP9GYCuy7CYaKs9hhg Content-Language: en-gb List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks for the suggestions. I don't think there is any dependencies in the lib folder, but added it = anyway and it made no difference. I tried "Process Explorer" (having previously tried "Dependency Walker") = PE revealed one or two more dependencies I was previously unaware of. = Added these to the root PHP folder, but still got me no further. I have = even added Postgres.EXE to the php root folder.=20 In desperation I tried adding all the postgres files to the PHP Ext = folder. Unsurprisingly that did not yield results either. Does anyone know of a step by step guide for installing php and postgres = on windows server? So I can doublecheck to see if there is anything I = have missed. I can only assume I have made some simple mistake as it = surely can't be this difficult to set up. Cheers, Mark __ -----Original Message----- From: Adrian Klaver =20 Sent: 22 September 2018 16:45 To: Mark Williams ; = pgsql-general@lists.postgresql.org Subject: Re: PostgreSQl, PHP and IIS On 9/22/18 3:06 AM, Mark Williams wrote: > "Fatal error: Call to undefined function pg_connect". >=20 > 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. >=20 > __ >=20 > -----Original Message----- > From: Adrian Klaver > Sent: 21 September 2018 23:02 > To: Mark Williams ;=20 > pgsql-general@lists.postgresql.org > Subject: Re: PostgreSQl, PHP and IIS >=20 > 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=20 >> 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=20 >> according to phpinfo. >> >> According to phpinfo the Configuration File Path is "C:\Windows" and=20 >> 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=20 >> postgresql installation to the root folder of the PHP installation. >> >> I have added the bin folder of the postgresql installation to the=20 >> 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,=20 >> libeay32.dll, libintl-8.dll, libiconv-2.dll) from the postgresql bin=20 >> folder to the php root folder). >> >> Phpinfo show php_pdo_pgsql is enabled, but not php_pgsql.dll and an=20 >> undefined function call error is displayed by php when I try and run=20 >> any pg php functions. >> >> Can anyone please shed any light on what more I need to do? >=20 > So what is the error you are getting? >=20 > Or to put it another way, what is not happening? >=20 >> >> Regards, >> >> Mark >> >=20 >=20 > -- > Adrian Klaver > adrian.klaver@aklaver.com >=20 >=20 -- Adrian Klaver adrian.klaver@aklaver.com