yabuki> 矢吹です。
こんにちは。井上です。もう少し教えてください。
yabuki> (1) 鵜飼氏のFAQに答えがある、dl("pgseql.so")の追加はして
yabuki> いますか?
php3-pgsql_3.0.14-2.deb をinstallして、
index.php3 の先頭に dl("pgsql.so"); を追加しました。
# もともと入いってないのは、path指定で回避できるのかも。
yabuki> 前述の、FAQには是非目を通してみてください。www-dataの問題
これは、postgres6.5.3なので、createuser www-data ができました。
でも、下記のエラーでまだdatabaseにつながりません。
Warning: Unable to connect to PostgresSQL server: connectDB() -- connect() failed: Connection refused Is the postmaster running (with -i) at
'localhost' and accepting connections on TCP/IP port '5432'? in db_pgsql.inc on line 40
Database error: Link-ID == false, pconnect failed
PostgreSQL Error: 0 ()
Session halted.
このあたりは違いがよくわかりません。
$this->Link_ID=pg_pconnect($cstr);
$this->Link_ID=pg_Connect("","5432","","","$cstr");
どちらにしてもエラーなので、databaseが見えてないのだと思います。
postgresqlのuserは、postgres
apacheのuserは、www-data
postgresのcreateuserは、nobody, www-data
これは変でしょうか。
Follow-Ups: References:
- [linux-users:70062] pgCalendar SD 6 月号Hirohisa Inoue
- [linux-users:70063] Re: pgCalendar SD 6月号yabuki
- Prev by Subject: [linux-users:70069] Re: SSHの安全性の確認
- Next by Subject: [linux-users:70071] Re: Cyclades マルチシリアル 解決しました
- Previous by thread: [linux-users:70063] Re: pgCalendar SD 6月号
- Next by thread: [linux-users:70077] Re: pgCalendar SD 6月号
- Indexes:[Main][Thread]