Обсуждение: Re: [GENERAL] Postgres with php3

Поиск
Список
Период
Сортировка

Re: [GENERAL] Postgres with php3

От
"Carsten Huettl"
Дата:
Date sent:          Wed, 21 Jun 2000 09:36:26 +0200
From:               "Poul L. Christiansen" <plc@faroenet.fo>
To:                 Carsten Huettl <CHUETTL@ahorn-Net.de>
Copies to:          pgsql-general@postgresql.org, pgsql-novice@postgresql.org
Subject:            Re: [GENERAL] Postgres with php3

> I don't think Postgres is started by default. Open linuxconf and make it
> start every time your Redhat starts.

In this situation of testing I start postgresql or the postmaster
manually. It works. I can login. Create dbs and a smple of tables.
But I cannot connct via the phpPGadmin thats the point of trouble.

> PgAdmin requires ODBC drivers on the windows machine, have you got them?

There is no Windows in the game.
Bye
C.

--
Carsten Huettl - <http://www.ahorn-Net.de>
pgp-key on request

RE: Postgres with php3

От
"Joseph"
Дата:
> In this situation of testing I start postgresql or the postmaster
> manually. It works. I can login. Create dbs and a smple of tables.
> But I cannot connct via the phpPGadmin thats the point of trouble.
>

I got it by doing the following:

Install postgres - Get it running, sounds like you got that.

Install apache - Get it running. Make sure you can make a html file and
display it.

Install php rpm and the php_pgsql rpm.

Edit your /etc/httpd/conf/httpd.conf, find the php file type entry.
I added html to the file so that php code works in regular html files.
Make sure that php3 file type is enabled.

Make a file with the php3 extension and put something like
<? echo "Hello World" ; ?> in it.

Joseph
IT Manager