pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
To: Tom Browder <tom.browder@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unable to login with phppgadmin on a remote host
Date: Thu, 18 Aug 2011 18:31:35 +0200
Message-ID: <4E4D3E67.8010308@free.fr> (raw)
In-Reply-To: <CAFMGiz-f+aOdWY9ogTh45f-kCw3P9__SZb=AEHgTCtWx43h2SA@mail.gmail.com>
References: <CAFMGiz9DWRU4uYNTT3-y6GLYmPZ+DfATWhtEycfWX6aat6HZ9g@mail.gmail.com>
	<4E4CEC10.4060905@free.fr>
	<CAFMGiz_cp8_0118PkqRiDSpv96zcBMVsmJKhOR8Bey08GQRFgg@mail.gmail.com>
	<4E4D0771.20001@free.fr>
	<CAFMGiz976BRk+4QDjry7OGrwH1jbA90rtnT2x-jBr+Ycp8G8SA@mail.gmail.com>
	<4E4D181F.4040001@free.fr>
	<CAFMGiz-f+aOdWY9ogTh45f-kCw3P9__SZb=AEHgTCtWx43h2SA@mail.gmail.com>

On 18/08/2011 17:55, Tom Browder wrote:
> On Thu, Aug 18, 2011 at 08:48, Jehan-Guillaume (ioguix) de Rorthais
> <ioguix@free.fr> wrote:
>> On 18/08/2011 15:37, Tom Browder wrote:
>>> On Thu, Aug 18, 2011 at 07:37, Jehan-Guillaume (ioguix) de Rorthais
>>> <ioguix@free.fr> wrote:
>>>> On 18/08/2011 13:54, Tom Browder wrote:
>>>>> On Thu, Aug 18, 2011 at 05:40,  (ioguix) de Rorthais <ioguix@free.fr> 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




view thread (9+ messages)

Message-ID: <4E4D3E67.8010308@free.fr>
Permalink:  ../4E4D3E67.8010308@free.fr/
Also on:    postgresql.org/message-id/4E4D3E67.8010308@free.fr

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ioguix@free.fr, tom.browder@gmail.com
  Subject: Re: Unable to login with phppgadmin on a remote host
  In-Reply-To: <4E4D3E67.8010308@free.fr>

* 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