Re: starting/running postgres...

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: bruce <bedouglas(at)earthlink(dot)net>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: starting/running postgres...
Date: 2005-04-26 01:24:59
Message-ID: 20050426012459.GA9905@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Michael Fuhr 2005-04-26 01:56:21 Re: starting/running postgres...
Previous Message bruce 2005-04-25 22:09:11 starting/running postgres...