Re: cannot connect to PostGreSQL from PHP
| From: | Hannes Magnusson | Date: | Wed, 07 Mar 2007 13:48:04 +0000 |
| Subject: | Re: cannot connect to PostGreSQL from PHP | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-34574@lists.php.net to get a copy of this message | ||
Hi Andrew
I am sorry but this is not a support forum.
Please have a look at http://php.net/support
-Hannes
On 3/6/07, Andrew Kirkness <andrew03ca@gmail.com> wrote:
Hello, I am using a dedicated server that is running a Linux 2.6.17-1.2142 server using Apache 2.0.4 and the operating system is Fedora Core 4. I am trying to connect PHP V5 with PostGreSQL V8.0 database. I cannot connect locally to PostgreSQL from PHP. I have changed the pg_hba.conf and postgres.conf configuration files and can successfully connect from PHP to PostgreSQL remotely, but I cannot connect locally (after I transferred the PHP based web page to the dedicated server, I am not getting any error messages, just a blank screen). I have modified the php.ini file to display error messages, but it did not work even after rebooting the web server, so I think it might have something to do with httpd.conf (the Apache configuration file), what do you think? Do you have any suggestions or recommendations? I am thinking of reinstalling PHP and PostGreSQL on the dedicated server, do you have any recommendations on the steps to do that? Any assistance would be well appreciated, thanks. Cheers, Andrew -- Andrew Kirkness akirkness@bciprotocol.com T: 905.464.7755 F: 416.503.3138 www.bciprotocol.com