On Wed, Jul 9, 2014 at 6:37 AM, basti <basti@xxxxxxxxxxxxxxxx> wrote: > I don't know whats wrong there > host mydns mydns localhost trust > works well and > > #host all all 0.0.0.0 0.0.0.0 md5 > did not work. > > I use Postgres 9.3.4-1.pgdg70+1. > PHP should be telling you what you're doing wrong. Look in your logs etc. For example this code: <?php $conn = pg_connect("dbname=smarlowe host=localhost"); ?> on my box gives me this warning: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: fe_sendauth: no password supplied in /tmp/test.php on line 2