From: Robby Russell <rrussell@commandprompt.com>
To: pgsql-php@postgresql.org
Subject: Re: pg_connect problem
Date: Wed, 03 Sep 2003 11:00:40 -0700
Message-ID: <3F562C48.1020404@commandprompt.com> (raw)
In-Reply-To: <HJENIMPAKDMENODLAJNMCEELCFAA.egb@tonesoft.com>
References: <HJENIMPAKDMENODLAJNMCEELCFAA.egb@tonesoft.com>
Edric Bulalacao wrote:
> Thank you for the quick reply. Looks like all the lines in my
> postgresql.conf file are all commented out.
>
> I will uncomment the tcpip_socket and port lines lines to see if it works:
>
>
No problem. I've run into this on several occasions when I'm setting up
a new server and forget to make that one minor little change. It's a
good default security setting, however it adds one extra little step for
us. heh
-Robby
> # Connection Parameters
> #
> #tcpip_socket = true
> #ssl = false
>
> #max_connections = 32
> #superuser_reserved_connections = 2
>
> #port = 5432
> #hostname_lookup = false
> #show_source_port = false
>
>
>
> -----Original Message-----
> From: Robby Russell [mailto:rrussell@commandprompt.com]
> Sent: Wednesday, September 03, 2003 10:48 AM
> To: Edric Bulalacao
> Subject: Re: [PHP] pg_connect problem
>
> Edric Bulalacao wrote:
>
>>I'm a PHP/PostGRE newbie. I'm getting this error:
>>
>>Warning: pg_connect(): Unable to connect to PostgreSQL server: could not
>>connect to server: Connection refused Is the server running on host
>>localhost and accepting TCP/IP connections on port 5432? . in
>>/export/home/tsc/a/delete-action.phtml on line 156
>>Couldn't make a connection!
>
>
>>Can anyone tell me what I'm doing wrong? Thanks.
>
>
> Look at your postgres.conf file.
>
> Is TCP/IP on?
>
> tcpip_socket = true
>
>
>
> --
> Robby Russell, | Sr. Administrator / Lead Programmer
> Command Prompt, Inc. | http://www.commandprompt.com
> rrussell@commandprompt.com | Telephone: (503) 222.2783
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rrussell@commandprompt.com
Subject: Re: pg_connect problem
In-Reply-To: <3F562C48.1020404@commandprompt.com>
References: <HJENIMPAKDMENODLAJNMCEELCFAA.egb@tonesoft.com> <3F562C48.1020404@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox