Re: [PHP-DB] pgsql.so causes Apache 1.3.36 to core dump SOLVED

2006-06-10 Thread [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:

I have a quite depressing row with pgsql.so the last ten days.

I have -

FreeBSD 5.4
Apache 1.3.36
PHP 5.1.4
PostgreSQL 8.0.8

Everything compiled from ports.

After everything is installed - it works. As soon as I reboot the 
FreeBSD - Apache starts to core dump. When I comment pgsql.so in the 
extensions.ini or uninstall it - everything works again.


I did more than a dozen clean installations on a blank drive starting 
from the operating system and I get all the time the same result - after 
install all works, after OS reboot - Apache starts to core dump.


Is it possible that I do something wrong, which is enforced on reboot?

Thanks a lot for your help,
Iv


SOLVED

Somebody from the list came in to debug with us. He examined httpd.core 
and found out that the problem is around 'get host by name'. Then he 
added a line in 'hosts' and gave the host name in 'httpd.conf' and all 
worked fine.


Interesting that the server worked without this for quite a while.

Iv.

--

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Cant connect to postgresql 7.4 on FreeBSD

2006-06-10 Thread chris smith

On 6/9/06, Arie Nugraha [EMAIL PROTECTED] wrote:

Hi list,

yesterday i compile postgresql 7.4 in my FreeBSD 5.4 box.
I manage to run the server smoothly without any problem.
But then i try to connect with my php script with pg_connect function, and
it returns an error like this :

*cant make link. to many connection open*


You have too many connections to your database.

Either increase the number of connections your database accepts or
work out where all the connections are coming from and try to cut that
down.

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php