Page 1 of 1

FATAL: no pg_hba.conf entry for host

Posted: Mon Mar 07, 2005 2:38 am
by anjanesh
All I have is one line of code :

Code: Select all

<?php
$test=pg_connect("host=localhost dbname=somedb user=someuser password=somepass");
?>
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "xxx.xx.xxx.xxx", user "someuser", database "somedb", SSL off in /xx..xx/test.php on line 2
I searched for this and it seems that pg_hba.conf has to be edited (?) and Postgres has to be restarted.
Im doing this on my web host - everything works ok on my PC - so how do I get a wrokaround for this ?
Thanks

Posted: Mon Mar 07, 2005 3:00 am
by feyd
talk to your web host?