[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postgre/PHP installation woes



On Tue, 2004-02-24 at 17:27, Danny O'Brien wrote:
> Any postgre experts out there? We have a PHP4 site that worked
> fineunder a previous RedHat build, but we just can't get it working
> onthis Debian build.

...
> But when we go to login to our PHP site, our login is rejected and we
> get the following error:
> 
> Warning: Supplied argument is not a valid PostgreSQL link resource
> in<path>/auth.php on line 10

Clearly PHP4 is reporting this error.

> Line 10 in auth.php looks like this:
> 
> $result = pg_exec( $link, $sql );
> 
> We've attempted to log in many times, so we know we're not
> mis-typingthe password. Is the login prompt not hitting the database?

Look at your postgresql log to see what is happening; connection
attempts should be logged there.

Have you got php's postgresql module installed?

   apt-get install php4-pgsql

Oliver Elphick





Reply to: