Roundcube can't connect to PostgreSQL database

Posted by kenny.r on Server Fault See other posts from Server Fault or by kenny.r
Published on 2010-12-22T20:46:47Z Indexed on 2010/12/22 20:56 UTC
Read the original article Hit count: 439

Filed under:
|
|

I'm trying to install Roundcube on a CentOS 5.5 server, with a PostgreSQL 8.1.22 database.

The first page of the installer script, that checks for the presence of php libraries and such, gives me green OKs across the board. I even went out of my way to install the optional ones.

Page two generates me two configuration files (main.inc.php and db.inc.php) which I put into place.

Page three is where things go wrong:

Check DB config DSN (write): NOT OK(MDB2 Error: connect failed)

Make sure that the configured database exists and that the user has write privileges

DSN: pgsql://roundcube:password@localhost/roundcubemail

The info you see there (user roundcube, password password, server localhost and database roundcubemail) is all correct. The database roundcubemail belongs to the user roundcube and it has write permissions.

I have no clue why it can't connect to that database. I'm managing it with phpPgAdmin, which is running on the very same Apache, on the same server!

© Server Fault or respective owner

Related posts about centos

Related posts about postgresql