Re: Postgres access using PHP - Mailing list pgsql-novice

From John Poltorak
Subject Re: Postgres access using PHP
Date
Msg-id 20010114232921.F85@eyup.org
Whole thread Raw
In response to Postgres access using PHP  (John Poltorak <jp@eyup.org>)
Responses Re: Re: Postgres access using PHP
List pgsql-novice
On Sun, Jan 14, 2001 at 10:27:57PM +0000, John Poltorak wrote:
>
> I am trying to access a Postgres database using PHP from a Web page
> and it doesn't work.
>
> Could anyone shed any light on the problem?
>
> This is the error I get - which looks like an authentication problem:-
>
> Unable to connect to PostgreSQL server:  FATAL 1:  SetUserId: user 'root' is not in 'pg_shadow'
>
> What have I overlooked in setting up Postgres for Web access?

Many thanks to everyone who suggested my Web server was running as 'root'
and this was the cause of the problem.

I'd just like to point out that I'm running Postgres, PHP4, and Xitami
all under OS/2, which is a single-user OS, and the USER variable does
not get set automatically.

I have set the this variable to POSTGRES before starting Xitami,
just to make sure I can get everything going and it works fine now,

So, thank you all.

--
John



pgsql-novice by date:

Previous
From: Chris
Date:
Subject: Re: Postgres access using PHP
Next
From: Ron Chmara
Date:
Subject: Re: Postgres access using PHP