Re: PostgreSQL connect error

From: John R Pierce <pierce(at)hogranch(dot)com>
To: devi <devi(at)visolve(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL connect error
Date: 2009-03-10 07:24:22
Message-ID: 49B615A6.4040106@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

devi wrote:
> Hi Friends,
>
> I wrote a sample php program that connects to PostgreSQL DB.
>
> ==> I was able to run the PHP program from the command prompt as
> postgres user & not as anyother user
> $ php pgsql.php
>
> ==> I was not able execute the same file from the web browser. FATAL
> ERROR- undefined function pg_connect().
>
> How to resolve this issue? Please help.

wild guess says, compare your PATH and other key environment variables
(such as LD_LIBRARY_PATH) while logged in as postgres vs your other
user... adjust the path of this other user to suit.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2009-03-10 08:55:05 Re: [GENERAL] postgres deployment
Previous Message Nagalingam, Karthikeyan 2009-03-10 07:11:48 Re: postgres deployment