I need to change the socket phpPgAdmin connects to in its config.
// Hostname or IP address for server. Use '' for UNIX domain socket.
// use 'localhost' for TCP/IP connection on this computer
$conf['servers'][0]['host'] = '/opt/jasperreports-server-cp-5.1.0/postgresql';
$conf['servers'][0]['defaultdb'] = 'postgres';
this does not work.
leaving it empty ''
doesn't work too.
In pg_hba.conf I have only the following line:
local all all trust
The path is correct, because I can connect through:
:~# psql --host=/opt/jasperreports-server-cp-5.1.0/postgresql/ --user=postgres