Re: php connection failure

From: ourdiaspora <ourdiaspora(at)protonmail(dot)com>
To:
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: php connection failure
Date: 2021-08-07 23:11:17
Message-ID: ZV4khnVKWjnQRwgbKLOy30bqwjY1ZQs2j08fEc7wjHafd1rXOUTnuzGvBfcy4fAm0P7H6zOxCSgZAG0nyyEPvDRoLj93mm_hg_oHUtw7tr8=@protonmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Saturday, August 7th, 2021 at 11:20 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:

>
> 1. OS and version?

Same local machine as described

> 2. The contents of /etc/hosts

127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

> 3. What happens if you do?:
>
> psql -d cpacweb -h 127.0.0.1 -U cpaca
>

psql -d cpacweb -h 127.0.0.1 -U cpaca
psql: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?

sudo /etc/init.d/apache2 status
[ ok ] apache2 is running.

sudo service postgresql status
9.6/main (port 5432): online

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ourdiaspora 2021-08-07 23:18:29 Re: php connection failure
Previous Message Tom Lane 2021-08-07 23:11:07 Re: php connection failure