SIlverpeas プロジェクトを実行するためにインストールする必要がある PostgreSQL でいくつかの問題が発生しています。
通常、postgres 部分は正しく構成されています。これは、ユーザー silverpeas をデータベース silverpeas の所有者にするコマンドを送信したためであり、"pgsql -U silverpeas silverpeas" を使用して ssh で接続できます。
今、phpPgAdminを機能させようとしています。彼は Postgresql (バージョン 9.5) と同じサーバー Centos 6.7 を使用しています。
接続しようとすると、接続に失敗したというメッセージが表示され、問題をトラブルシューティングしようとすると、「システムをハッキングしようとしています」というメッセージが表示されることがあります。
接続試行の後、pgsql ログ ファイルを探していると、次のメッセージが表示されます。
< 2016-03-16 11:32:39.378 CET >LOG: could not connect to Ident server at address "::1", port 113: Connection refused
< 2016-03-16 11:32:39.378 CET >FATAL: Ident authentication failed for user "silverpeas"
< 2016-03-16 11:32:39.378 CET >DETAIL: Connection matched pg_hba.conf line 84: "host all all ::1/128 ident"
問題は、私の /var/lib/pgsql/9.5/data/pg_hba.conf が次のようになっていることです:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all 10.1.1.0/8 md5
/var/lib/pgsql/9.5/data/postgresql.conf ファイルを探した場合:
listen_addresses = 'localhost'
そして、私のphpPgAdmin構成は次のとおりです。
// use 'localhost' for TCP/IP connection on this computer
$conf['servers'][0]['host'] = 'localhost';
// Database port on server (5432 is the PostgreSQL default)
$conf['servers'][0]['port'] = 5432;
// Database SSL mode
// Possible options: disable, allow, prefer, require
// To require SSL on older servers use option: legacy
// To ignore the SSL mode, use option: unspecified
$conf['servers'][0]['sslmode'] = 'allow';
// Change the default database only if you cannot connect to template1.
// For a PostgreSQL 8.1+ server, you can set this to 'postgres'.
$conf['servers'][0]['defaultdb'] = 'silverpeas';
提案?