pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin M. Roy <gmr@ehpg.net>
To: Van Ingen, Lane <lvaningen@esncc.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Can't Get PHP Going on PostgreSQL
Date: Thu, 10 Mar 2005 13:29:43 -0800
Message-ID: <1110490183.4704.6.camel@gmr-dev.cloud.glyphix.com> (raw)
In-Reply-To: <A3FF4275060B76459B5C08A64AE330C805C1FC@twmail.esncc.com>
References: <A3FF4275060B76459B5C08A64AE330C805C1FC@twmail.esncc.com>

PgSQL support isn't compiled into that.  You can make a script like
<?php phpinfo(); ?> to output what support is compiled in.  Your best
bet will to be to download the php source and compile it in yourself,
unless there is a pgsql module laying around.  I switched from slack a
few years back so I'm not sure what they're doing with the php package
these days.  If you decide to compile it from source, just do
a ./configure --with-pgsql (and other options you want/need) and
--with-apxs and that should get you what you need.

Good luck :)

Gavin



On Thu, 2005-03-10 at 16:08 -0500, Van Ingen, Lane wrote:
> I am new to both PHP and PostgreSQL. Trying to install PHP and PostgreSQL 8.0 on Slackware Linux 10.0.0 . 
> I am getting the following error out of Apache:
>    "Fatal Error: Call to undefined function: pg_connect() ...."
> 
> PostgreSQL is up and running, and appears to be fine. 
> 
> Have found a lot of web references to this; the best was http://us2.php.net/pgsql . But am unable
> to proceed because I am not sure what to do. 
>  
> Facts about what I have installed: 
> - Installed PHP from Slackware binary; I made no special efforts to compile it. According to a PHP utility
>   function (phpinfo()), looks like it might be configured for MySQL already. 
> - version info:
>     PHP =  4.3.7
>     Linux kernel = 2.4.26
>    Apache = 1.3.31
>  
> How do I find these functions and install OR configure the php.ini file?
>  
> I don't think this is hard to fix, but it is beating me up right now. What I need to find a blow-by-blow of 
> what to do. Can somebody help me?
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




view thread (6+ messages)  latest in thread

Message-ID: <1110490183.4704.6.camel@gmr-dev.cloud.glyphix.com>
Permalink:  ../1110490183.4704.6.camel@gmr-dev.cloud.glyphix.com/
Also on:    postgresql.org/message-id/1110490183.4704.6.camel@gmr-dev.cloud.glyphix.com

 · 

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: gmr@ehpg.net, lvaningen@esncc.com
  Subject: Re: Can't Get PHP Going on PostgreSQL
  In-Reply-To: <1110490183.4704.6.camel@gmr-dev.cloud.glyphix.com>
  References: <A3FF4275060B76459B5C08A64AE330C805C1FC@twmail.esncc.com> <1110490183.4704.6.camel@gmr-dev.cloud.glyphix.com>

* 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