Bug #1377: Can't connect to database

From: Date: Wed, 05 May 1999 17:01:45 +0000
Subject: Bug #1377: Can't connect to database
Groups: php.dev 
Request: Send a blank email to php-dev+get-5372@lists.php.net to get a copy of this message
From: dinh@td.es.hac.com Operating system: Linux 2.0.36 PHP version: 3.0.7 PHP Bug Type: PostgreSQL related Bug description: Can't connect to database $db=pg_Connect('localhost', 5432, "", "", 'twig'); if (! $db) { PrintError("Could not connect to database"); return 0; } PHP3 CONFIGURATION: ./configure --with-pgsql=/usr/local/pgsql \ --with-apache=/u/dinh/apache_1.3.6 \ --enable-track-vars --with-imap=/u/dinh/imap-4.5 \ --with-gd=/u/dinh/gd_1.3 --with-x --with-zlib \ --with-config-file-path=/usr/local/etc/ I am able to connect to the Postgres database by running pgsql twig When running the above php3 code by opening the URL http://mandrake.es.hac.com/twig/test.php3, I received the following error message: Warning: Unable to connect to PostgresSQL server: connectDB() failed: Is the postmaster running and accepting TCP/IP(with -i) connections at 'localhost' on port '5432'? in features/pgsql.db.inc on line 35 Error: Could not connect to database Failed! -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5372) next »