Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied
Date: Thu, 15 Dec 2011 05:50:33
Message-Id: 20111215055134.GF9747@syscon4.inet
In Reply to: Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied by Pandu Poluan
1 On 12/15/11 12:23, Pandu Poluan wrote:
2 > On Dec 15, 2011 10:55 AM, "Joseph" <syscon780@×××××.com> wrote:
3 > >
4 > > I have postgresql up and running but when I try to connect via apache to
5 > postgresql I get an error:
6 > >
7 > > [error] [client 127.0.0.1] DBI
8 > connect('dbname=template1','sql-ledger',...) failed: could not connect to
9 > server: Permission denied, referer: http://localhost/sql-ledger/admin.pl
10 > >
11 > > Anybody knows what to look for?
12 > >
13 > > --
14 > > Joseph
15 > >
16 >
17 > Check pg_hba.conf
18 >
19 > Rgds,
20
21 I did, it is identical to my other working systems:
22 local all all trust
23
24 here are other details:
25
26 # psql -p 5432 -U postgres
27 psql (9.1.1)
28 Type "help" for help.
29
30 postgres=#
31
32 Available PostgreSQL Slots
33 9.1 * server-9.1.1 base-9.1.1
34
35 --
36 Joseph

Replies

Subject Author
Re: [gentoo-user] DBI connect dbname=template1 failed Permission denied Pandu Poluan <pandu@××××××.info>