[Phplib-users] unable to connect to pgsql server
Brought to you by:
nhruby,
richardarcher
From: Frank B. <fb...@sy...> - 2004-05-23 20:24:32
|
I am currently running phplib 7.4 on OpenBSD 2.9 / PHP 4.0.4pl1 / pgsql 7.1 I have created a new system on OpenBSD 3.5 / PHP 4.3.5RC3 / pgsql 7.3.5 I start pgsql with: su -l _pgsql -c "/usr/local/bin/pg_ctl start \ -D /var/pgsql/data -l /var/pgsql/logfile.`date +\%Y\%m\%d` \ -o '-i -B 512 -D /var/pgsql/data'" I copied an existing database and php application to the new box for testing, but when I try to access the application webpage, I get the following message in apache error log: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: unknown host name: localhost in /php/class/phplib-7.4/db_pgsql.inc on line 51 I'm not sure what step I might have missed during setup of the new system. Frank |