From: Mark Williams <markwillimas@gmail.com>
To: 'Adrian Klaver' <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
To: daniel@manitou-mail.org
Subject: RE: PostgreSQl, PHP and IIS
Date: Mon, 24 Sep 2018 10:46:03 +0100
Message-ID: <009001d453eb$68fedc60$3afc9520$@gmail.com> (raw)
In-Reply-To: <5b9f5127-989e-5b25-497b-c8922ec29e73@aklaver.com>
References: <000b01d451d1$7d50d090$77f271b0$@gmail.com>
<baaaff97-53b4-faa6-61d0-bb6323e066c6@aklaver.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>
Hi thanks,
Sadly PHP and IIS isn't the issue. It’s when you bring Postgres into the fold that I am getting a problem. But thanks.
Mark
__
-----Original Message-----
From: Adrian Klaver <adrian.klaver@aklaver.com>
Sent: 23 September 2018 15:36
To: Mark Williams <markwillimas@gmail.com>; 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.
>
> 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.
>
> 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.
Maybe this?:
https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/install...>
> Cheers,
>
> Mark
>
> __
>
> -----Original Message-----
> From: Adrian Klaver <adrian.klaver@aklaver.com>
> Sent: 22 September 2018 16:45
> To: Mark Williams <markwillimas@gmail.com>; 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".
>>
>> 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.
>
>>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: markwillimas@gmail.com, adrian.klaver@aklaver.com, daniel@manitou-mail.org
Subject: Re: PostgreSQl, PHP and IIS
In-Reply-To: <009001d453eb$68fedc60$3afc9520$@gmail.com>
References: <000b01d451d1$7d50d090$77f271b0$@gmail.com> <baaaff97-53b4-faa6-61d0-bb6323e066c6@aklaver.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> <009001d453eb$68fedc60$3afc9520$@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox