pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johannes Alfänger <johannes.alfaenger@itwing.de>
To: pgsql-php@postgresql.org
Subject: PHP and PostgreSQL: Cannot create new link. Too many open links (0)
Date: Wed, 28 Jan 2004 10:30:04 +0100
Message-ID: <006301c3e581$501262f0$0c00000a@mandata.local> (raw)

Hi All!

After working with PHP and MySQL and Firebird quite a while I need to
install PostgreSQL. After installation I made a new build of PHP to
support
PostgreSQL. I looked over the ini files and re-started Apache.

With psql I can connect like: "psql -h localhost ...". But not any
chancen
seen with PHP. I even just made a small script with just two echo lines
and
a pg_pconnect() / pg_connect().

This is the error Message I get: "Warning: pg_pconnect(): Cannot create
new
link. Too many open links (0). in /www/test.php on line 5".

I get this message no matter what connection string I use. Even if I
leave
it totally blank or put some nonsense in, I get the same error.

Any hint appreciated - Thanks in advance! Johannes

Configuration:
Red Hat 9
PHP Version 4.3.4
Apache 2.0.48
PostgreSQL 7.3.4
PostgreSQL libpq 7.3.4

pg_hba.conf:
local  all  all trust
host all all 127.0.0.1 255.255.255.255 trust




view thread (3+ messages)  latest in thread

Message-ID: <006301c3e581$501262f0$0c00000a@mandata.local>
Permalink:  ../006301c3e581$501262f0$0c00000a@mandata.local/
Also on:    postgresql.org/message-id/006301c3e581$501262f0$0c00000a@mandata.local

 · 

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: johannes.alfaenger@itwing.de
  Subject: Re: PHP and PostgreSQL: Cannot create new link. Too many open links (0)
  In-Reply-To: <006301c3e581$501262f0$0c00000a@mandata.local>
  References: <006301c3e581$501262f0$0c00000a@mandata.local>

* 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