Re: [PHP3] pgsql + php3 expert needed. Can you solve this problem?

From: Jouni Ahto <jah(at)cultnet(dot)fi>
To: Robert Chalmers <robert(at)chalmers(dot)com(dot)au>
Cc: php <php3(at)lists(dot)php(dot)net>, pgsql <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [PHP3] pgsql + php3 expert needed. Can you solve this problem?
Date: 1998-12-27 19:04:17
Message-ID: Pine.LNX.3.96.981227204002.2244A-100000@guru.cultnet.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, 27 Dec 1998, Robert Chalmers wrote:

> Taking it one step further: How many people are running
> Apache-1.3.3+php3_pgsql-6.4+BIND-8, the latest version of each, of the thousands
> that you mention?

I do.

> And if it's not caused by incompatibilities with Bind-8, and the DNS is working fine
> - the system is live 24 hours a day - what is the cause?

Like everyone else on this list, I'd too say it's the way you have set up
dns. Is there a line in /etc/resolv.conf saying 'search chalmers.com.au'?
And what does simply trying 'telnet nanguo' say?

But, now to the solutions:

a) If both Apache and PostgreSQL are running on the same machine, just
*don't* specify any hostname, not even 'localhost'. The connection will
be made via a UNIX-domain socket in that case. No hassle with dns and
you get slightly better performance, too.
b) Use the FQDN, ie 'host=nanguo.chalmers.com.au'.
c) Use the IP-number of the host, ie. 'host=203.1.96.5'.

And when you upgraded from 6.1 to 6.4, remember that postmaster doesn't
listen on a TCP-socket anymore unless you start it with '-i'.

Jouni Ahto

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Chalmers 1998-12-27 23:59:00 Thanks for the help folks. Solution found. php3+pgsql
Previous Message Terry Mackintosh 1998-12-27 17:40:51 Re: [ADMIN] pgsql + php3 expert needed. Can you solve this problem? (fwd)