X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EFC0053595 for ; Mon, 25 Apr 2005 22:25:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98784-09 for ; Tue, 26 Apr 2005 01:25:02 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id C7DFC5353B for ; Mon, 25 Apr 2005 22:25:01 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j3Q1P02a040132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 25 Apr 2005 19:25:02 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j3Q1P0Yx010005; Mon, 25 Apr 2005 19:25:00 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j3Q1Oxho010004; Mon, 25 Apr 2005 19:24:59 -0600 (MDT) (envelope-from mfuhr) Date: Mon, 25 Apr 2005 19:24:59 -0600 From: Michael Fuhr To: bruce Cc: pgsql-php@postgresql.org Subject: Re: starting/running postgres... Message-ID: <20050426012459.GA9905@winnie.fuhr.org> References: <04b401c549e3$693ee2e0$0301a8c0@Mesa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04b401c549e3$693ee2e0$0301a8c0@Mesa.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/25 X-Sequence-Number: 3109 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/