Skip site navigation (1) Skip section navigation (2)

pg calls not working from within Apache

From: bp1974(at)comcast(dot)net
To: pgsql-php(at)postgresql(dot)org
Subject: pg calls not working from within Apache
Date: 2004-08-04 17:16:06
Message-ID: 080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net (view raw or flat)
Thread:
Lists: pgsql-php
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

I have checked and double checked that php is compiled in with pgsql. List of compiled in modules looks like:
[PHP Modules]
SPL
SQLite
SimpleXML
calendar
ctype
dba
dom
ftp
gettext
iconv
libxml
openssl
pcre
pgsql <---
posix
session
soap
standard
tokenizer
xml
zlib

Apache and PHP seem to work, as evidenced by running the basic phpinfo() script. I also checked wheter pg calls work  when running from the script interpreter, i.e. running a php script. 
However, I am not able to get the same script running from within a browser. 
Can anyone point out what little bit of the puzzle I might be missing?
I have pgsql 7.4.3 PHP 4.3.2 and Apache 2.0.

Any help appreciated.

thanks,
Balaji

Responses

pgsql-php by date

Next:From: Thom DysonDate: 2004-08-04 17:26:46
Subject: Re: pg calls not working from within Apache
Previous:From: Andres FerrandoDate: 2004-08-04 12:41:37
Subject: Re: pg calls not working from within Apache

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group