From: Michael Fuhr <mike@fuhr.org>
To: bruce <bedouglas@earthlink.net>
Cc: pgsql-php@postgresql.org
Subject: Re: starting/running postgres...
Date: Mon, 25 Apr 2005 19:24:59 -0600
Message-ID: <20050426012459.GA9905@winnie.fuhr.org> (raw)
In-Reply-To: <04b401c549e3$693ee2e0$0301a8c0@Mesa.com>
References: <04b401c549e3$693ee2e0$0301a8c0@Mesa.com>
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/
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: mike@fuhr.org, bedouglas@earthlink.net
Subject: Re: starting/running postgres...
In-Reply-To: <20050426012459.GA9905@winnie.fuhr.org>
References: <04b401c549e3$693ee2e0$0301a8c0@Mesa.com> <20050426012459.GA9905@winnie.fuhr.org>
* 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