From: Steve D. <sd...@sw...> - 2001-02-14 05:05:37
|
The Postgresql postmaster has to be started w/ the -i option to listen on port 5432. You may also have to edit your pg_hba.conf depending on your system/network. Open postgresql to the internet and you should be fine. Steve Richard Eicher II wrote: > Ok I think I have this setup, but still have an > internal error on the login.cgi. Here is the log > for apache: > > [Mon Feb 12 20:38:20 2001] [error] [client > 192.168.10.2] Premature end of script headers: > /home/httpd/sql-ledger/login.cgi > DBI->connect(dbname=account;host=localhost;port=5432) > failed: PQconnectPoll() -- connect() failed: > Connection refused > Is the postmaster running (with -i) at > 'localhost' > and accepting connections on TCP/IP port '5432'? > at /home/httpd/sql-ledger/login.cgi line 66 > Can't call method "prepare" on an undefined value > at /home/httpd/sql-ledger/login.cgi line 79. > [Tue Feb 13 19:16:43 2001] [error] [client > 192.168.10.2] Premature end of script headers: > /home/httpd/sql-ledger/login.cgi > DBI->connect(dbname=accounting;host=localhost;port=5432) > failed: PQconnectPoll() -- connect() failed: > Connection refused > Is the postmaster running (with -i) at > 'localhost' > and accepting connections on TCP/IP port '5432'? > at /home/httpd/sql-ledger/login.cgi line 66 > Can't call method "prepare" on an undefined value > at /home/httpd/sql-ledger/login.cgi line 79. > [Tue Feb 13 19:19:15 2001] [error] [client > 192.168.10.2] Premature end of script headers: > /home/httpd/sql-ledger/login.cgi > > Am I close? > rick > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ |