Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E7961B5DCA8 for ; Thu, 18 Aug 2011 13:31:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 13232-01-3 for ; Thu, 18 Aug 2011 16:31:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by mail.postgresql.org (Postfix) with ESMTP id 74025B5DBF7 for ; Thu, 18 Aug 2011 13:31:40 -0300 (ADT) X-Originating-IP: 217.70.178.134 Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.134]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id C2D65A807C; Thu, 18 Aug 2011 18:31:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter4-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 0hDR-woK0n+H; Thu, 18 Aug 2011 18:31:36 +0200 (CEST) X-Originating-IP: 88.164.23.161 Received: from [192.168.0.11] (fb.ioguix.net [88.164.23.161]) (Authenticated sender: jg@derorthais.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 9B98BA808A; Thu, 18 Aug 2011 18:31:35 +0200 (CEST) Message-ID: <4E4D3E67.8010308@free.fr> Date: Thu, 18 Aug 2011 18:31:35 +0200 From: "Jehan-Guillaume (ioguix) de Rorthais" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 MIME-Version: 1.0 To: Tom Browder CC: pgsql-admin@postgresql.org Subject: Re: Unable to login with phppgadmin on a remote host References: <4E4CEC10.4060905@free.fr> <4E4D0771.20001@free.fr> <4E4D181F.4040001@free.fr> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201108/170 X-Sequence-Number: 38157 On 18/08/2011 17:55, Tom Browder wrote: > On Thu, Aug 18, 2011 at 08:48, Jehan-Guillaume (ioguix) de Rorthais > wrote: >> On 18/08/2011 15:37, Tom Browder wrote: >>> On Thu, Aug 18, 2011 at 07:37, Jehan-Guillaume (ioguix) de Rorthais >>> wrote: >>>> On 18/08/2011 13:54, Tom Browder wrote: >>>>> On Thu, Aug 18, 2011 at 05:40, (ioguix) de Rorthais wrote: >>>>>> On 18/08/2011 01:20, Tom Browder wrote: > ... >>>>>>> However, I cannot successfully login with phppgadmin on the remote host. >>>>>>> >>>>>>> I always get "login failed" whether I use myuser or postgres. > ... >> make sure you can connect to the "$conf['servers'][0]['defaultdb']" >> using myuser: >> >> psql -h 127.0.0.1 template1 myuser > > I can connect okay. > >> Then, it should work with the following line in your >> "conf/config.inc.php" using user myuser: >> >> $conf['servers'][0]['host'] = '127.0.0.1'; > > And that works okay. great ! >>> Is there a possibility my postgresql.conf file needs changing to get >>> good logging? I originally changed no defaults and my system >>> postgresql start file puts all info into "server.log" in $PGDATA. >>> >>> This morning I changed one line in that conf file (and then did a reload): >>> >>> #logging_collector = off # Enable capturing of stderr and csvlog >>> logging_collector = on # Enable capturing of stderr and csvlog >> >> with >> * log_destination = 'stderr' >> * logging_collector = on > >> You will find your log file in the folder defined in "log_directory" >> with name set in parameter "log_filename". > > I've set those explicitly now. > > And now all works! I'm not sure which step worked but I think it was > after I set > >> $conf['servers'][0]['host'] = '127.0.0.1'; Yes, I think this is where you had a mistake. Your previous attempts might have an error here somehow. > and restarted Apache. It shouldn't be necessary. > Thanks, so much, Jehan-Guillaume, for your patience and your hand-holding. You are welcome. > Best regards, > > -Tom