apache2 에서 mod_authn_dbd 으로 인증시 기동오류 발생

kukgini의 이미지

Ubuntu Server 8.04 버전에서 Apache 웹서버의 특정 url 에 대해 인증검사를
데이터베이스의 테이블로 하려고 합니다. 설치시 PostgreSQL 데이터베이스도
함께 설치했습니다.

여기
http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html

를 참조해서 설정을 다음과 같이 하였습니다.

DBDriver pgsql
DBDParams "dbname=logindb user=apache password=xxxxxx"
 
DBDMin  4
DBDKeep 8
DBDMax  20
DBDExptime 300
 
<Directory /usr/www/myhost/private>
  # core authentication and mod_auth_basic configuration
  # for mod_authn_dbd
  AuthType Basic
  AuthName "My Server"
  AuthBasicProvider dbd
 
  # core authorization configuration
  Require valid-user
 
  # mod_authn_dbd SQL query to authenticate a user
  AuthDBDUserPWQuery \
    "SELECT password FROM userWHERE user = %s"
</Directory>

그런데 Apache 웹서버 로그에 다음과 같은 오류가 발생하네요.

[Wed Nov 05 23:28:52 2008] [error] (20014)Internal error: DBD: Can't connect to pgsql
[Wed Nov 05 23:28:52 2008] [error] (20014)Internal error: DBD: failed to initialise

어디를 손보면 될까요?