Re: php problem with pg_connect()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks. when I removed the line "extension=pgsql.so" from my php.ini file 
it worked. Now I'm back up and running.

Avram

On Thu, May 27, 2004 at 07:08:37PM -0400, Scot L. Harris wrote:
> On Thu, 2004-05-27 at 18:50, Avram Aumick wrote:
> > I keep getting the following error since upgrading from RH8 to RC1 when I
> > try to connect to my postgresql database:
> > <error>
> > Warning: pg_connect(): Cannot create new link. Too many open links (0) in
> > test.php on line 15
> > stat =
> > Connection status bad
> > Could not connect!
> > 
> > Warning: pg_last_error(): supplied argument is not a valid PostgreSQL link
> > resource in test.php on line 30
> 
> Found this reference that may be what you are experiencing.  
> 
> http://archives.postgresql.org/pgsql-php/2004-01/msg00026.php
> 
> Quoting from the article:
> 
> In my /etc/php.ini file I had this line:
> extension=pgsql.so
> (now removed).
> 
> ; Note: For Red Hat Linux, packaged extension modules are now loaded via
> ; the ini files in the directory /etc/php.d.
> 
> # ls -l /etc/php.d
> -rw-r--r--    1 root     root           51 10 nov 16:40 pgsql.ini
> # cat /etc/php.d/pgsql.ini
> ; Enable pgsql extension module
> extension=pgsql.so
> 
> 
> End of quote
> 
> -- 
> Scot L. Harris
> webid@xxxxxxxxxx
> 
> Johnson's First Law:
> 	When any mechanical contrivance fails, it will do so at the
> 	most inconvenient possible time. 
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

-- 
-----------
You know you're getting old when you talk about what
you've done, rather than what you're going to do.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux