Re: Unable to connect to Postgresql

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "John Iliffe" <john(dot)iliffe(at)iliffe(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unable to connect to Postgresql
Date: 2017-04-08 13:20:46
Message-ID: e61552b1-1c85-46d6-8c5e-3cb477c4a2e1@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John Iliffe wrote:

> The proper socket does exist:
>
> -------------------------------------
> ls -al /tmp | grep PGSQL
> srwxrwxrwx. 1 postgres postgres 0 Apr 7 16:53 .s.PGSQL.5432
> -rw-------. 1 postgres postgres 49 Apr 7 16:53 .s.PGSQL.5432.lock

Maybe the httpd service lives in another namespace,
e.g. it's chrooted. What if you try:
<?php echo file_exists("/tmp/.s.PGSQL.5432"); ?>

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Iliffe 2017-04-08 13:26:42 Re: Unable to connect to Postgresql
Previous Message John Iliffe 2017-04-08 13:12:43 Re: Unable to connect to Postgresql