X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3AFBA9FAC76 for ; Mon, 26 Jun 2006 22:02:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63300-03 for ; Mon, 26 Jun 2006 22:02:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id C944B9FA5FC for ; Mon, 26 Jun 2006 22:02:26 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 50C153093E; Tue, 27 Jun 2006 03:02:25 +0200 (MET DST) From: ljb X-Newsgroups: pgsql.interfaces.php Subject: Re: Cannot make connection to postgresql 7.4 on FreeBSD Date: Tue, 27 Jun 2006 01:02:16 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 26 Message-ID: References: <449F464F.1070005@gmail.com> X-Complaints-To: usenet@news.hub.org User-Agent: slrn/0.9.8.1 (Linux) To: pgsql-php@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/22 X-Sequence-Number: 3547 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.