pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Ferrando <anferr@mecon.gov.ar>
To: pgsql-php@postgresql.org
Subject: Re: pg calls not working from within Apache
Date: Wed, 04 Aug 2004 14:41:37 +0200
Message-ID: <4110D981.7080404@mecon.gov.ar> (raw)
In-Reply-To: <080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net>
References: <080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net>

Hi,
PHP is loaded as Apache's module or CGI? Remember that this module is 
not the same that the script interpreter. You can compare the phpinfo() 
output from both. You have postgresql client libraries in this machine?


bp1974@comcast.net escribió:

>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
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: the planner will ignore your desire to choose an index scan if your
>      joining column's datatypes do not match
>  
>

-- 
Andrés Ferrando <anferr@mecon.gov.ar>
Centro de Desarrollo de Sistemas
Secretaria de Industria, Comercio y PyME




view thread (6+ messages)  latest in thread

Message-ID: <4110D981.7080404@mecon.gov.ar>
Permalink:  ../4110D981.7080404@mecon.gov.ar/
Also on:    postgresql.org/message-id/4110D981.7080404@mecon.gov.ar

 · 

reply

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-php@postgresql.org
  Cc: anferr@mecon.gov.ar
  Subject: Re: pg calls not working from within Apache
  In-Reply-To: <4110D981.7080404@mecon.gov.ar>
  References: <080420041716.1841.411119D500083B76000007312200750330CBC9C7CE9F0D@comcast.net> <4110D981.7080404@mecon.gov.ar>

* 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