Re: Postgres access using PHP

Поиск
Список
Период
Сортировка
От John Poltorak
Тема Re: Postgres access using PHP
Дата
Msg-id 20010114232921.F85@eyup.org
обсуждение исходный текст
Ответ на Postgres access using PHP  (John Poltorak <jp@eyup.org>)
Ответы Re: Re: Postgres access using PHP  ("Anthony E . Greene" <agreene@pobox.com>)
Список 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 по дате отправления:

Предыдущее
От: Chris
Дата:
Сообщение: Re: Postgres access using PHP
Следующее
От: Ron Chmara
Дата:
Сообщение: Re: Postgres access using PHP