From: | Balaji Prasad <bp1974(at)comcast(dot)net> |
---|---|
To: | pgsql-php <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: pg calls not working from within Apache |
Date: | 2004-08-08 03:22:59 |
Message-ID: | opscd80lou6ss02y@mail.comcast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Thank You. I got it working shortly after posting it here. I indeed had
multiple PHPs on the system and the one apache was detecting did not have
pgsql support built in. It was just a matter of deleting the "wrong" php
and things started working like a charm.
On Thu, 05 Aug 2004 09:47:07 +0200, Justin Wyer <justin(at)isogo(dot)co(dot)za> wrote:
> bp1974(at)comcast(dot)net wrote:
>
>> Hi,
>> I am trying to get a PostGresql <-->PHP<-->Apache working and am
>> running to the well documented problem of :
>>
>> Fatal error: Call to undefined function: pg_connect() in
>> /var/www/html/dbview.php on line 14
>>
>>
> Call to undefined function, means the pgsql extension is infact not
> there. Do you have multiple php's on this machine? Do you have a
> misconfigured php.ini lying around in your root directory, that php will
> read when its been run from apache. Remember php running from apache
> will read configuration files that php running from CLI wouldn't.
>
> cheers
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Wyer | 2004-08-08 13:20:10 | Re: pg calls not working from within Apache |
Previous Message | bruce | 2004-08-06 17:56:14 | Re: [0.2] getting transactions to work |