X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 4144C9FB26B for ; Sun, 13 Aug 2006 12:56:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 76127-09 for ; Sun, 13 Aug 2006 15:56:30 +0000 (UTC) X-Greylist: delayed 00:29:50.535546 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id B27AB9FB272 for ; Sun, 13 Aug 2006 12:56:30 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from neon.cs.hacettepe.edu.tr (neon.cs.hacettepe.edu.tr [193.140.236.6]) by svr4.postgresql.org (Postfix) with ESMTP id 734FE5AF032 for ; Sun, 13 Aug 2006 15:26:38 +0000 (GMT) Received: from neon.cs.hacettepe.edu.tr (neon2.cs.hacettepe.edu.tr [127.0.0.1]) by neon.cs.hacettepe.edu.tr (8.13.1/8.13.1) with ESMTP id k7DFRSJ7013674 for ; Sun, 13 Aug 2006 18:27:28 +0300 Received: (from apache@localhost) by neon.cs.hacettepe.edu.tr (8.13.1/8.13.1/Submit) id k7DFRSht013673; Sun, 13 Aug 2006 18:27:28 +0300 From: Fatih Gulec X-Authentication-Warning: neon.cs.hacettepe.edu.tr: apache set sender to fatihg@localhost using -f Received: from 193.140.224.60 (SquirrelMail authenticated user fatihg) by cs.hacettepe.edu.tr with HTTP; Sun, 13 Aug 2006 18:27:28 +0300 (EEST) Message-ID: <2033.193.140.224.60.1155482848.squirrel@cs.hacettepe.edu.tr> Date: Sun, 13 Aug 2006 18:27:28 +0300 (EEST) Subject: DB Error: connect failed To: pgsql-php@postgresql.org User-Agent: SquirrelMail/1.4.6-5.el4.centos4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV 0.88.2/1651/Sun Aug 13 03:45:45 2006 on neon.cs.hacettepe.edu.tr X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/14 X-Sequence-Number: 3585 Here is the problem : System : Fedora Core 5 Application server : Apache (comes with Fedora base installation) 1. I could not connect to postgresql in php code whicih uses pear packet DB. Here is the error code : DB Error: connect failed [nativecode=Unable to connect to PostgreSQL server: could not connect to server: Permission denied Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?] ** pgsql://postgres:bbmprens@127.0.0.1/prens 2. By the way I can connect that db from an other machine which the system is Windows XP and program is default PgAdmin. 2. Alsa I can connect and use from a windows machine with the sama php code that connects to the dbms which works on the Fedora Core 5. 3. The user and password are tested by using pgsql command, in command prompt. Thanks...