2006/08/05
.s.PGSQL.5432の場所
ポスト @ 13:02:16 | PostgreSQL
サーバへサーバアプリのインストール作業を続けるうちに、アパッチを再起動しなくてはならなくなり、再起動した結果、ブラウザでアクセスすると下のようなエラー発生
Warning: pg_connect() [function.pg-pconnect]: Unable to connect to PostgreSQL server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? in /ほげ.php on line 5 db connection error!
findしてみると、別の場所に「.s.PGSQL.5432」があることが判明。とりあえずpostgresql.confを編集して
unix_socket_directory = '/var/run/postgresql'とすることで対処できました。
こういういきなりのエラーはちょっと焦ります。。。(^^;
1 Trackback
.s.PGSQL.5432
下記のエラーの件で、postgresql.confの編集を行い、socketファイルの位置を指定するとPHPからpg_connectした際に正常に繋がりました。 Warning: pg_pconne...
Track from Your Website
http://blog.bddb.org/trackback/tb.php?id=144
(言及リンクのないトラックバックは無視されます)


Comment
No Comments