❦ 22 juin 2012 17:35 CEST, Luc Maisonobe <[email protected]> :

> The problem appear after an upgrade from postgresql 8.x to 9.x and un
> upgrade from roundcube 0.5.x to 0.7.x.  After upgrade, when I try to
> load the rouncube web page from a brower, I get the error:
>
> DATABASE ERROR: CONNECTION FAILED!
>
> Unable to connect to the database!
> Please contact your server-administrator.

After some investigation, it appears that PostgreSQL now listens only on
5433 (SSL) while PHP is not aware of this change. Setting `$dbport` to
`'5433'` solves the problem.

I don't know the correct way to fix this. I don't think this should be
fixed in roundcube. Either PHP should default to 5433 instead of 5432
(like psql is doing right now) or dbconfig-common should default to
5433.

I have filed a bug against php5-pgsql (#678626) about this. I am marking
this bug as being blocked but the new bug in the mean time.
-- 
Don't just echo the code with comments - make every comment count.
            - The Elements of Programming Style (Kernighan & Plauger)

Attachment: pgpq1QGEz2pUU.pgp
Description: PGP signature

Reply via email to