[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Postgre and PHP3
- Subject: Re: [cobalt-users] Postgre and PHP3
- From: Paul Ramsey <pramsey@xxxxxxxxxxxxxxx>
- Date: Wed May 24 17:12:36 2000
There are some quirks to the way Cobalt has set up pgsql. Firstly, it is
not running with this "-i" switch by default. If you want to connect
over network sockets, you must enable that. A more secure option is to
just not specify the host or port in your connect statement, so that you
connect over the internal Unix domain sockets. Secondly, if you *do*
enable network sockets, the server by default runs on port 5583, not
5432. Finally, once you get all that up and running, you'll find (on the
RaQ3 and latest pgsql rpms) that the pg_close() function causes a fatal
error.
franck wrote:
> I have installed PHP3 with my Raq3i without problem and now when i want to
> connect postrgre from php script i receive this message :
> "Warning: Unable to connect to PostgresSQL server: connectDB() -- connect()
> failed: Connection refused Is the postmaster running at 'localhost' and
> accepting connections on Unix socket '5432'? in lib.inc.php3 on line 125
>
> Fatal error: Call to unsupported or undefined function pg_die() in
> lib.inc.php3 on line 125"
>
> I use postgresadmin for this test.
>
> Thanks for your help
>