Thread: [General] Warning: Unable to connect to PostgreSQL server: unknown host name:
[General] Warning: Unable to connect to PostgreSQL server: unknown host name:
From
"Paul Ottar Tornes"
Date:
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
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
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..
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..
Re: [General] Warning: Unable to connect to PostgreSQL server: unknown host name:
From
Tom Lane
Date:
"Paul Ottar Tornes" <critical@tiscali.no> writes: > This is a multi-part message in MIME format. > ------=_NextPart_000_008B_01C27C61.922B5320 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > Warning: Unable to connect to PostgreSQL server: unknown host name: maloypo= > rtalen in /www/maloyportalen.no/html/phpBB2/db/postgres7.php on line 79 ^^^^^^^^^^^^^^^^^^^^ Perhaps that should be www.maloyportalen.no ? In any case, "unknown host name" does not suggest any problem that changing pg_hba.conf might solve; you're failing even to reach the database server. regards, tom lane