Re: php connection failure - Mailing list pgsql-general

From ourdiaspora
Subject Re: php connection failure
Date
Msg-id ZV4khnVKWjnQRwgbKLOy30bqwjY1ZQs2j08fEc7wjHafd1rXOUTnuzGvBfcy4fAm0P7H6zOxCSgZAG0nyyEPvDRoLj93mm_hg_oHUtw7tr8=@protonmail.com
Whole thread Raw
In response to Re: php connection failure  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: php connection failure  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: php connection failure  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On Saturday, August 7th, 2021 at 11:20 PM, Adrian Klaver <adrian.klaver@aklaver.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




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: php connection failure
Next
From: ourdiaspora
Date:
Subject: Re: php connection failure