Re: problem with postgres
| From: | bob parker | Date: | Sun, 10 Nov 2002 13:21:27 +0000 |
| Subject: | Re: problem with postgres | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23180@lists.php.net to get a copy of this message | ||
On Sun, 10 Nov 2002 04:12, you wrote:
> Hi there,
>
> I got this fustrating problem with postgresql & php.... can any one help???
>
> my postgresql installation is working fine with my perl application. My
> php is working fine... however, my php don't seems to be able to connect to
> the postgresql. I always get the unable to connect error... anyone knows
> what's wrong???
>
>
> I'm using postgresql 7.2.2, php 4.2 and redhat 8.0. I've added support for
> pgsql and I've confirm that pqsql.so is loaded.
I had similar problems a while ago using Mandrake and connnecting via
localhost. On my setup the user from php was apache. IIRC I ad to create the
postgres user 'apache' and provide the necessary permissions on all tables
etc.
HTH
Bob