Re: [GENERAL] Unable to connect to PostgreSQL server via PHP

2007-08-15 Thread John Coulthard
se {echo "connected", "\n";} ?> saved it as test.php and at a shell prompt ran... [john@ tmp]$ php test.php connected If you get 'connected' you know php and postgres are talking via tcp and some secondary process (firewall/SELinux) is preventing the apache c

Re: [GENERAL] Unable to connect to PostgreSQL server via PHP

2007-08-13 Thread John Coulthard
From: Tom Lane <[EMAIL PROTECTED]> To: "John Coulthard" <[EMAIL PROTECTED]> CC: pgsql-general@postgresql.org Subject: Re: [GENERAL] Unable to connect to PostgreSQL server via PHP Date: Mon, 13 Aug 2007 10:09:15 -0400 "John Coulthard" <[EMAIL PROTECTE

Re: [GENERAL] Unable to connect to PostgreSQL server via PHP

2007-08-13 Thread John Coulthard
From: "Lim Berger" <[EMAIL PROTECTED]> To: "John Coulthard" <[EMAIL PROTECTED]> CC: pgsql-general@postgresql.org Subject: Re: [GENERAL] Unable to connect to PostgreSQL server via PHP Date: Mon, 13 Aug 2007 18:51:37 +0800 On 8/13/07, John Coulthard <[EMAIL P

Re: [GENERAL] Unable to connect to PostgreSQL server via PHP

2007-08-13 Thread John Coulthard
not a firewall issue because it persists when the iptabes are off. What does "could not connect to server: Permission denied" mean? Have I done some something as root or me that I should have done as user postgres? Thanks From: Julio Cesar Sánchez González <[EMAIL PROTE

Re: [GENERAL] Unable to connect to PostgreSQL server via PHP

2007-08-13 Thread John Coulthard
not a firewall issue because it persists when the iptabes are off. What does "could not connect to server: Permission denied" mean? Have I done some something as root or me that I should have done as user postgres? Thanks From: Julio Cesar Sánchez González <[EMAIL PROTE

[GENERAL] Unable to connect to PostgreSQL server via PHP

2007-08-09 Thread John Coulthard
Hi I'm trying to set up a new webserver running php and pgsql. PHP was connecting to postgres but I needed to install the php-gd module and now I get the error... "PHP Warning: pg_connect() [href='function.pg-connect'>function.pg-connect]: Unable to connect to PostgreSQL server: could not