柳井といいます。
Yoshiaki Tanabe <yoshiaki@xxxxxxxxxxxxxxx> wrote:
(2002/11/02 00:13)
>
>http : //venus/~yoshiaki/test.php の実行結果
>Warning: pg_connect() unable to connect to PostgreSQL server:
> could not connect to server: Connection refused Is the server
>running on host venus and accepting TCP/IP connections on port
>5432? in /home/yoshiaki/public_html/test.php on line 2
>
>/home/yoshiaki/public_html/test.php の内容
><?php
> $conn=pg_Connect("host=venus dbname=yoshiaki port=5432");
>?>
>
Vine の PostgreSQL ではデフォルトで TCP/IPでのコネクションは
認めていなかったはず。
試しに localhost の 5432 番ポートをスキャンしてみたら
どうでしょう。開いていないのだったら認めていないことになります。
起動スクリプト /etc/init.d/postgres で postmaster の実行に
-i オプションを加えてみればいかがでしょうか。
これで TCP/IP のコネクションを受け入れるようになるはずだと思います。