pgsql7.2装phpBB2论坛出问题?

pgsql7.2装phpBB2论坛出问题?

红旗3.0服务器版上安装PHPBB2论坛出问题?

我今天在红旗3多功能服务器版上安装PHPBB2论坛时出现问题,使用的是postgresql7.2.2数据库,apache,postgresql,php4均安装在/usr/share目录下,都是源码安装的。在安装之前我用以下方式启动数据库,
postmaster -i -D/usr/share/pgsql/data&
然后在安装phpbb2时有如下提示:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL 1: No pg_hba.conf entry for host 192.168.1.3, user pgsql, database phpBB2 in /www/htdocs/phpBB2/db/postgres7.php on line 79
phpBB : Critical Error

Could not connect to the database
好像是说不能连接数据库,我明明已经启动了呀,按要求也先创建了phpbb2数据库呀!      
还有我在安装phppgadmin2.4时也有问题?我输入如下
http://192.168.1.3/pgadmin/时系统有如下提示,
请大家帮忙看看,在此先谢了!
Error - /www/htdocs/pgadmin/lib.inc.php -- Line: 252

PostgreSQL said:
Your query:
Unable to connect with settings: host='' dbname='template1' user='' password=''
Back      
晚上我看了一下有关pgsql7.2说明文档!我以pgsql身份进入,运行了psql phpBB2之后,再次安装phpBB2论坛,还是不行呀,有如下提示。
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL 1: No pg_hba.conf entry for host 192.168.1.3, user pgsql, database phpBB2 in /www/htdocs/phpBB2/db/postgres7.php on line 79
phpBB : Critical Error

Could not connect to the database
有pg_hba.conf文件呀,在/usr/share/pgsql/data下呀,而且在/home/pgsql/.bash_profile文件时有如下呀:
PGLIB=/usr/share/pgsql/lib PGDATA=/usr/share/pgsql/data PATH=$PATH:/usr/share/pgsql/bin MANPATH=$MANPATH:/usr/share/pgsql/man export PGLIB PGDATA PATH MANPATH
这是怎么回事呀?请大家抽点时间帮忙看看,小弟感激不
尽,在此先谢谢了!