473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PHP: Too many open links (0) with libpg7.4.3

Hi
I try to upgrade postgresql 7.3.3 to 7.4.3 on my machine running Apache
2.0.49 and PHP 4.3.7

Because i use another path for postgres 7.4 there (luckily) stay a old
libpg
So while i compile php with --with-pgsql=shared an old, 7.3.3 libpg is used
by PHP. Everything fine, run and works.

But specifing for php configure corect path --with-pgsql=path_to_new
postgresq , pglib 7.4.3 is used and result (after reboot ) is

Warning: pg_pconnect(): Cannot create new link. Too many open links (0) .

There was not a change of php.ini file and phpinfo() returns proper values ,
correctly find libpg7.4.3 and other properties. I even try to set
pgsql.max_links and pgsql.max_persistent from -1 (unlimited) to some
value without effect....
Where is a problem ?

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #1
1 1538
El Jue 24 Jun 2004 08:19, NTPT escribió:
Hi
I try to upgrade postgresql 7.3.3 to 7.4.3 on my machine running Apache
2.0.49 and PHP 4.3.7

Because i use another path for postgres 7.4 there (luckily) stay a old
libpg
So while i compile php with --with-pgsql=shared an old, 7.3.3 libpg is used
by PHP. Everything fine, run and works.

But specifing for php configure corect path --with-pgsql=path_to_new
postgresq , pglib 7.4.3 is used and result (after reboot ) is

Warning: pg_pconnect(): Cannot create new link. Too many open links (0) .

There was not a change of php.ini file and phpinfo() returns proper values
, correctly find libpg7.4.3 and other properties. I even try to set
pgsql.max_links and pgsql.max_persistent from -1 (unlimited) to some
value without effect....


Maybe PG ran out of posible conections. Checkout how many conections you have
open (PostgreSQL conections), and how many PHP has of those (php_info() will
give you that info).

--
08:55:02 up 14:28, 1 user, load average: 0.18, 0.32, 0.45
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ben Allen | last post by:
Hi, I've created a mySQL database with the fields id, title and content. 'ID' is a unique field. Any ideas on how I can use PHP to generate a list of the titles which are links. When you click on...
4
by: Gellert, Andre | last post by:
Hello, we installed a new Postgres 7.4.0 on a Suse 9 system. This is used as a part of an extranet , based on Apache+PHP and has besides a ldap server no services running. The system has dual...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
8
by: Deepblue | last post by:
I need to develop a webcasting solution. (mostly realtime broadcast) I am considering the apache/php vs iis/asp.net. I am a MSFT guy myself (vc++, vb6, asp.net) but new to multimedia(video...
5
by: Slant | last post by:
Here's a question that most will have different answers to. I'm just dying to find a solution that seems halfway automated!! There really are two seperate issues which might be answered by the...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
by: geevaa | last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3 XMLHttpRequest and AJAX for PHP programmers James Kassemi Introduction: Although the concept isn't entirely new, XMLHttpRequest...
4
by: Computer Guy | last post by:
Hi I have recently started working with PHP and am making a neighborhood website. I am connecting to my Mysql database and am having difficulty understanding what is happening in the example on...
3
by: Hazza | last post by:
Hi, I am using PHP and mysql to create a website. I am fairly new to PHP, and thus am grateful to anyone who helps! Firstly I am running a homepage, that displays additional content if a user...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.