Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 88B27633531 for ; Fri, 29 Jan 2010 06:53:14 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 10864-10 for ; Fri, 29 Jan 2010 10:52:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ananke.wxnz.net (ananke.wxnz.net [58.28.4.122]) by mail.postgresql.org (Postfix) with ESMTP id B1D846334EE for ; Fri, 29 Jan 2010 06:53:03 -0400 (AST) Received: from gonzo (ip-118-90-130-5.xdsl.xnet.co.nz [118.90.130.5]) by ananke.wxnz.net (Postfix) with ESMTP id 513521704FB for ; Fri, 29 Jan 2010 23:52:58 +1300 (NZDT) Received: from news by gonzo with local (Exim 4.69) (envelope-from ) id 1NaoT6-00022i-Lt for pgsql-php@postgresql.org; Fri, 29 Jan 2010 23:52:52 +1300 To: pgsql-php@postgresql.org Path: not-for-mail From: Jasen Betts Newsgroups: gmane.comp.db.postgresql.php Subject: Re: problem with connection to remote server Date: 29 Jan 2010 10:52:52 GMT Organization: Dis (not Dat) Organisation Lines: 15 Message-ID: References: <72b0d9d047b1.4b616c3d@pwr.wroc.pl> <1264672955.25189.256.camel@happy.home.mcmillan.net.nz> <20100128074300.59a4591d.wmoran@potentialtech.com> <73a0d649417f.4b61a0de@pwr.wroc.pl> NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reversiblemaps.ath.cx 1264762372 7854 127.0.0.1 (29 Jan 2010 10:52:52 GMT) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-2 (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.338 tagged_above=-10 required=5 tests=AWL=-0.339, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201001/15 X-Sequence-Number: 4113 On 2010-01-28, Ireneusz Tarnowski wrote: >> In addition to this, PHP will give some pretty useful error messages when >> it can't connect.  If you're not seeing those, then you should adjust >> your application logic to log them, it will make your life a lot easier. >> If they don't clearly define the problem, post them here ... I (and >> others like me) have seen them enough to know what they indicate. > > I have warning: > > Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: No such file or directory Is the server running on host "XX.XX.XX.XX" and accepting TCP/IP connections on port 5432? in /export/sun1000/XXXXXXX/public_html/dbtest.php on line 10 > > And nothing more. Postgresql log, apache error log and php error log write nothing about this connection. "No such file or directory" is ENOENT but I can't see how errno is getting set to that on an IP socket connectiom.