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 |