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 1g4NRV-0008GN-NG for pgsql-general@arkaria.postgresql.org; Mon, 24 Sep 2018 09:46:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4NRT-0000n2-Ix for pgsql-general@arkaria.postgresql.org; Mon, 24 Sep 2018 09:46:11 +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 1g4NRT-0000mv-4r for pgsql-general@lists.postgresql.org; Mon, 24 Sep 2018 09:46:11 +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 1g4NRQ-00048x-2Z for pgsql-general@lists.postgresql.org; Mon, 24 Sep 2018 09:46:09 +0000 Received: by mail-wr1-x444.google.com with SMTP id m16so2490499wrx.12 for ; Mon, 24 Sep 2018 02:46:07 -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=K7j8EWUqizDOsH3nSEhTq3vjDBWLG1iOy9lqDQaefSw=; b=akEkjiI0p06zlnFazyadEWPMzjWFJ48Mp/OGVrMbwB4OpChUqr7mXIyFPRRpG8tNp2 RLSUkTRZMyjwwBVMFanSMrS7NJt5SAir6/SpLNsYvkhxWg0OOUv50WYhNl+sdwgovL3K kDrW9TsDQ8xFf/ptObDW9qYMVjn94fIinLIZ+HOrCS2xBtepWeulzu+bc9hTSWOywZut uaCVawUKkTQtj2fukGHPgHLhtt0Nwompiwn4BqBe2Qm80df0I6FIJzn5YyJ3OfKKJVA9 tY90Lugaa74UfnOLkBfbXM2bbULOsG3A+Ip32/sW1QPY7axXt4nACMPjrGBidEx9akPD 9DQg== 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=K7j8EWUqizDOsH3nSEhTq3vjDBWLG1iOy9lqDQaefSw=; b=L4Z7LP4Yw4HtTbSz5u8ABfW2bSpzQgn6lPoqugO9WWVj5MnDzQRb0oXL9yGftCWwd/ /eg9oSwDP7E90rHLqM995NVh/YvZpIgdxlXM9HcL0m5L41hOFnKVlOVYxnAOniardc2K kA8hux88/mGWJQsPHgx1wPzI4K6mEPK6XkxblRAHGt5396DMpMJU0aHKmlxgg0jbESu4 kPlCuF1GpSyCVkpRpJkH1W5WWtEVbHPmO0QM9aCAbLOGcTatP+JP6K0TGoQVO6MiqQGC z+YVbQmENIUEbYU+c11PqSjScIM7tYtK2eTGJcfmY2cO6kDc13b0skpn2mUtPoDkPYPV FBhQ== X-Gm-Message-State: ABuFfojMhmkjytnQOTDCzM1ktTTm6XcOxCtQyJU7zo/fbT1B2jvTJRC7 QGQVQKSIfiN81IK74kM3xR+qOCI2 X-Google-Smtp-Source: ACcGV62SjWVNRlwNJWj3Q7cj2uuMbSPGlXDPyeTnvLQKZgJVwe+RekYzo3AC3GogG0+vLXz2KJwFPQ== X-Received: by 2002:a5d:4a10:: with SMTP id m16-v6mr7649468wrq.278.1537782366407; Mon, 24 Sep 2018 02:46:06 -0700 (PDT) Received: from LAPTOPE7EH7MDP (167.221-30-62.static.virginmediabusiness.co.uk. [62.30.221.167]) by smtp.gmail.com with ESMTPSA id j66-v6sm51266459wrj.28.2018.09.24.02.46.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 02:46:05 -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> <003e01d4532b$c8a8ecc0$59fac640$@gmail.com> <5b9f5127-989e-5b25-497b-c8922ec29e73@aklaver.com> In-Reply-To: <5b9f5127-989e-5b25-497b-c8922ec29e73@aklaver.com> Subject: RE: PostgreSQl, PHP and IIS Date: Mon, 24 Sep 2018 10:46:03 +0100 Message-ID: <009001d453eb$68fedc60$3afc9520$@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: AQLpFnJJi4qlZIh18uBYPjmWGAZy1ADQoV9fAVqP9GYCuy7CYQKFS4TWAe5o38GiitkDQA== Content-Language: en-gb List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi thanks, Sadly PHP and IIS isn't the issue. It=E2=80=99s when you bring Postgres = into the fold that I am getting a problem. But thanks. Mark __ -----Original Message----- From: Adrian Klaver =20 Sent: 23 September 2018 15:36 To: Mark Williams ; = pgsql-general@lists.postgresql.org; daniel@manitou-mail.org Subject: Re: PostgreSQl, PHP and IIS On 9/23/18 3:54 AM, Mark Williams wrote: > Thanks for the suggestions. >=20 > I don't think there is any dependencies in the lib folder, but added = it anyway and it made no difference. >=20 > 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. >=20 > 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. Maybe this?: https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-c= onfigure-php-on-iis/install-and-configure-php >=20 > Cheers, >=20 > Mark >=20 > __ >=20 > -----Original Message----- > From: Adrian Klaver > Sent: 22 September 2018 16:45 > To: Mark Williams ; = pgsql-general@lists.postgresql.org > Subject: Re: PostgreSQl, PHP and IIS >=20 > 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. >=20 > Went back over your previous post and saw: >=20 > "I have copied the version of libpq.dll from the lib folder of the = postgresql installation to the root folder of the PHP installation. >=20 > I have added the bin folder of the postgresql installation to the = Windows system search path. > " >=20 > I would say add the lib/ of the Postgres install to the search path. >=20 >> --=20 Adrian Klaver adrian.klaver@aklaver.com