Re: help

From: s0lao(at)netscape(dot)net (S(dot) L(dot))
To: marekza(at)yahoo(dot)com, pgsql-cygwin(at)postgresql(dot)org
Subject: Re: help
Date: 2002-03-20 06:55:38
Message-ID: 0DC60AFF.7E0F327D.00013D13@netscape.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

[...]

> - i have installed Apache Web Server 1.3 (binary
> installation for Windows)
> - i have installed PHP 4.0 (binary installation for
> Windows) with configuration of php.ini

[...]

Please note that other database issues or terms are off topic on this list.

[...]

> with CYGWIN. So i downloaded Cygwin installation file
> from the internet /my computer is not connected to
> internet/ and installed Cygwin on my computer /with
> downloaded option - PostgreSQL 7.2.2/. I can run
> PostgreSQL through Cygwin.exe /and work with
>postgre/,
> but could not configure in with PHP to run. My
> webbrowser inform me like this:
>
> "Fatal error: Call to undefined function:
>pg_connect()
> in ... "
>
> so this means, that PHP could not work with Postgre,
> but i dont know how to make it run!

Your main problem is the interface between php/win32 and postgresql/cygwin. This interface is included in the file php_pgsql.dll which, in turn, relies on the C language interface to postgresql, which is the pq library.

As I checked the PHP 4.0.5/WIN32 binary distribution the pq library is placed under the "dlls" directory, and is named libpq.dll.

So the easiest way to solve your problem is to copy this file in the "extensions" directory, where php_pgsql.dll resides. Of course you must check, as stated in a previous message, the line
extension=php_pgsql.dll
in php.ini.

And a last hint: be sure to start the postmaster with "-i" option in its command line. This enables the tcp/ip communication, which is the only connection mode available under win32.

SLao

--

__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop(at)Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

Browse pgsql-cygwin by date

  From Date Subject
Next Message Raveendra Yerraguntla 2002-03-20 11:20:36 Re: POSTGRESQL - Basic Question
Previous Message Yutaka tanida 2002-03-20 04:16:08 Re: Configuration under Win 2000 and cygwin (bug ?)