Problem: Permission denied when accessing a database via www

From: Frank Bringezu <FB(at)bsax(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Problem: Permission denied when accessing a database via www
Date: 1998-08-14 09:03:51
Message-ID: s5d41833.052@bfa.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I' m using a Redhat Linux, Apache 1.3 with PHP (2.01) Module Support
and Postgres 6.3.2-4 to access a database via internet.
When I connect to the DB using the psql monitor everything works fine. In
order to use the Web interface I have
created a user 'nobody' and made 'Grant update on <table> to nobody'.
Then I restarted the postmaster with the -i
option.
Connecting the database with PHP (' $database = pg_Connect($pghost,
$pgport, "", "", $dbname);' results in the following
error message:

PostgreSQL :ERROR: cars: Permission denied.

What did I miss ?? Any suggestions welcome.
Thanks a lot
By Frank

Browse pgsql-general by date

  From Date Subject
Next Message Wim Ceulemans 1998-08-14 09:36:13 Re: [GENERAL] Unique key with nulls and copying databases across computers
Previous Message Vadim Mikheev 1998-08-14 07:50:41 Re: [GENERAL] getting the currval of a sequence