Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Sep 2004 09:41:19 -0400
From:      Gerard Samuel <fbsd-ports@trini0.org>
To:        Przemek <p@missTCP.net>
Cc:        ports@freebsd.org
Subject:   Re: mod_php4 and pgsql - pg_connect(): Cannot create new link. Too many	open links (0)
Message-ID:  <4138747F.9080201@trini0.org>
In-Reply-To: <1641177329.20040903112342@missTCP.net>
References:  <1641177329.20040903112342@missTCP.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Przemek wrote:
> Hello,
> 
> after I upgraded mod_php4 to 4.3.8 version my connection to pgsql
> doesn't work.
> It writes me:
> pg_connect(): Cannot create new link. Too many open links (0) in /usr/local/www/data/libs/c_db_postgres.php on line 43
> Can't connect to database server!
> 
> Why?
> Before upgrade it worked.
> 
> I've installed /usr/ports/database/php4-pgsql and i've got in
> /usr/local/etc/php/extensions.ini:
> extension=pgsql.so
> 
> My phpinfo() shows:
> 
> PostgreSQL Support      enabled
> PostgreSQL(libpq) Version       7.4
> Multibyte character support     enabled
> SSL support     enabled
> Active Persistent Links         0
> Active Links    0
> 
> Directive       Local Value     Master Value
> pgsql.allow_persistent  On      On
> pgsql.auto_reset_persistent     Off     Off
> pgsql.ignore_notice     Off     Off
> pgsql.log_notice        Off     Off
> pgsql.max_links         Unlimited       Unlimited
> pgsql.max_persistent    Unlimited       Unlimited
> 
> What wrong with this?
>

Have you tried to restart Postgresql?
I upgraded php last week, and I didnt have any problems connecting to 
postgresql...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4138747F.9080201>