pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: arie nugraha <dicarve@gmail.com>
To: pgsql-php@postgresql.org
Subject: Re: Cannot make connection to postgresql 7.4 on FreeBSD
Date: Tue, 27 Jun 2006 10:40:57 +0700
Message-ID: <44A0A8C9.5000103@gmail.com> (raw)
In-Reply-To: <e7q02n$1cck$1@news.hub.org>
References: <449F464F.1070005@gmail.com>
	<e7q02n$1cck$1@news.hub.org>

Im currently using PHP 4.4.2 (compile it by myself, not by FreeBSD 
ports), and then i compile the
pgsql dynamic library (pgsql.so) with phpize.

I already saw that my postgresql support is already enabled in phpinfo(),
but i still can't connect it.

> dicarve@gmail.com wrote:
>   
>> Hi list,
>>
>> Last week, i compile postgresql 7.4 on my FreeBSD OS, and i planned to 
>> use it with php.
>> I manage to run the postmaster, and i already saw it running in 
>> background with ps ax
>> But when i try to connect with my php script i got an error which is 
>> look like this :
>>
>> *Cannot create link. Too many connection open....*
>>
>> I already enable the tcp/ip for my postmaster, but it seems doesn't 
>> change the situation
>>
>> Anyone can help me out?
>>     
>
> I've heard of this "too many connections" message before, and the cause was
> always a messed-up installation. Some things to check:
> +  pgsql extension is either compiled into PHP or loaded as an extension,
> but not both.
> +  pgsql extension (or PHP itself, if pgsql is built-in) is using or
> referencing the version of PostgreSQL's libpq that you think it should be,
> and not some other version.
> If this doesn't help, post more details: PHP version, self-built or not,
> relevant part from phpinfo() for PostgreSQL.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>
>   




view thread (6+ messages)  latest in thread

Message-ID: <44A0A8C9.5000103@gmail.com>
Permalink:  ../44A0A8C9.5000103@gmail.com/
Also on:    postgresql.org/message-id/44A0A8C9.5000103@gmail.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: dicarve@gmail.com
  Subject: Re: Cannot make connection to postgresql 7.4 on FreeBSD
  In-Reply-To: <44A0A8C9.5000103@gmail.com>
  References: <449F464F.1070005@gmail.com> <e7q02n$1cck$1@news.hub.org> <44A0A8C9.5000103@gmail.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