RE: Postgresql problem

From: Aaron O'Hara (ajeo_at_globalreachsoftware.com)
Date: 04/21/04

  • Next message: Russell East: "xcdroast sees my DVD/CDRW drive as DVD/CDROM only when ide-scsi is in effect"
    To: "'For users of Fedora Core releases'" <fedora-list@redhat.com>
    Date: Tue, 20 Apr 2004 23:36:44 -0700
    
    

    Take a look at netstat -tap and see of postgres is running. I installed the
    latest package/rpm (7.4.2) and, by default, postgres wasn't listening. I
    changed the postmaster startup to include the -i parameter so that it would
    listen.

    Aaron

    -----Original Message-----
    From: fedora-list-bounces@redhat.com [mailto:fedora-list-bounces@redhat.com]
    On Behalf Of Giandomenico De Tullio
    Sent: Sunday, April 18, 2004 11:54 AM
    To: For users of Fedora Core releases
    Subject: Re: Postgresql problem

    On 18/04/2004 04:32:18, gm wrote:
    >
    >
    > Hey guys
    >
    > I get this error in php:
    >
    > Warning: pg_connect(): Unable to connect to PostgreSQL server: could
    > not connect to server: Connection refused Is the server running on
    > host localhost and accepting TCP/IP connections on port 5432? . in
    > /www/index.php on line 7
    >
    > PHP code
    >
    > $conn = pg_connect("host=localhost user=***** password=****
    > dbname=***** ");
    >

    remove "host=localhost" ?

    --
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Russell East: "xcdroast sees my DVD/CDRW drive as DVD/CDROM only when ide-scsi is in effect"

    Relevant Pages

    • Re: Postgresql problem
      ... On Wednesday 21 April 2004 02:36, Aaron O'Hara wrote: ... > Take a look at netstat -tap and see of postgres is running. ... > the latest package/rpm and, by default, postgres wasn't listening. ...
      (Fedora)
    • Re: installing tutos2
      ... Is the server running on host "localhost" and accepting ... TCP/IP connections on port 5432? ... createuser: could not connect to database template1: could not connect ... Your postgres server's not accepting connections. ...
      (Debian-User)
    • Re: psql command
      ... '>'> I already created the user on postgres ... You have to '>'run .bashrc after an edit, either by logging out and back in, or by '>'sourcing it on the command line. ... '>'-- '>'To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx '>'with a subject of "unsubscribe". ...
      (Debian-User)
    • [PHP-DB] help desk software
      ... called "teacup" that runs as a cgi and used Postgres but I wanted to see ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)
    • Re: postgres install fails on sid
      ... Cannot get Postgres 8.2 working on Debian sid using the Debian package. ... The program "postgres" is needed by initdb but was not found in the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)