Re: starting/running postgres... - Mailing list pgsql-php

From Michael Fuhr
Subject Re: starting/running postgres...
Date
Msg-id 20050426012459.GA9905@winnie.fuhr.org
Whole thread Raw
In response to starting/running postgres...  ("bruce" <bedouglas@earthlink.net>)
List pgsql-php
On Mon, Apr 25, 2005 at 03:09:11PM -0700, bruce wrote:
>
> i'm installing postgres and have a few questions... i can login/su as the
> user 'postgres' and then 'postmaster -i -p 5432 -D /var/lib/psql/data/'.
> this starts the postgres app, and i can access it from a website.
>
> however, if i attempt to do 'service postgresql start' while i'm 'root', the
> postgres db/app still starts, but i'm unable to connect to it from the
> website. the same thing occurs if i try to start the postgres app from the
> 'gnome' gui...

What error do you get when you try to connect?  What's different
between the two situations?  One possibility is that you're making
a TCP connection that succeeds in the first case because -i tells
the postmaster to listen for network connections, but fails in the
second case because the postmaster isn't started with -i and
postgresql.conf isn't configured for network connections.  You could
check this with netstat, lsof, etc.

What version of PostgreSQL are you using?  In 8.0 look at the
listen_addresses setting in postgresql.conf; in 7.4 and earlier
look at tcpip_socket and virtual_host.  In any version see also the
port setting.  If you change postgresql.conf, be sure to restart
the postmaster.

For more information about postgresql.conf, see "Run-time Configuration"
in the "Server Run-time Environment" chapter of the documentation.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-php by date:

Previous
From: "bruce"
Date:
Subject: starting/running postgres...
Next
From: Michael Fuhr
Date:
Subject: Re: starting/running postgres...