Re: [General] Warning: Unable to connect to PostgreSQL

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Paul Ottar Tornes <critical(at)tiscali(dot)no>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: [General] Warning: Unable to connect to PostgreSQL
Date: 2002-10-25 18:15:42
Message-ID: 1035569742.12583.48.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

looks like php/apache doesn't know which computer is "maloyportalen".
You might want to add a host file entry mapping this name to an ip.

Robert Treat

On Fri, 2002-10-25 at 14:03, Paul Ottar Tornes wrote:
> Warning: Unable to connect to PostgreSQL server: unknown host name:
> maloyportalen in /www/maloyportalen.no/html/phpBB2/db/postgres7.php on
> line 79
> phpBB : Critical Error
>
> Could not connect to the database
>
>
> I have this in /etc/postgresql/pg_hba.conf
>
> local all
> ident sameuser
> host all 127.0.0.1 255.0.0.0 ident
> sameuser
> host maloy 62.101.192.200 255.255.255.0 ident sameuser
> host maloy maloyportalen 255.255.255.0 ident sameuser
> host all 0.0.0.0 0.0.0.0
> reject
>
> What is wrong, cause I cant se the problem..

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-10-25 18:17:08 Re: question about seq scan and index scan
Previous Message Paul Ottar Tornes 2002-10-25 18:03:22 [General] Warning: Unable to connect to PostgreSQL server: unknown host name: