Author Topic: Debian managed DB connection issue  (Read 3914 times)

Offline duck

  • Newbie
  • *
  • Posts: 2
Debian managed DB connection issue
« on: November 14, 2012, 05:29:38 AM »
Hello

I have a db connection issue, namely I don't know where or how to configure roundcube to use mysql over mdb2.

Background / detail
I recently tried to upgrade a roundcube 0.3.1 to 0.8.3, but now I'm seeing a db connection error.

The issue as it turns out, roundcube was installed using debian apt database was to be managed by debian using /etc/dbconfig-common/roundcube.conf.

Now, when I attempt to access roundcube webmail I see a db connection error, roundcube is trying to use mdb2 when I need it to use mysql managed by debian.

MDB2 Error: not found (-4): no RDBMS driver specified
DB Error: no RDBMS driver specified in /usr/share/roundcube/program/include/rcube_mdb2.php on line 107 (GET /roundcube/)

Any advice very much appreciated.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Debian managed DB connection issue
« Reply #1 on: November 14, 2012, 05:33:38 AM »
I don't know how Debian sets up the database you have to compare with the old version. The file to look at is the <RC root>/config/db.inc.php specifically the $rcmail_config['db_dsnw'] variable which should hold the connection string.

Offline duck

  • Newbie
  • *
  • Posts: 2
Re: Debian managed DB connection issue
« Reply #2 on: November 14, 2012, 06:13:20 AM »
Thanks SKaero

I have resolved the issue.

Debian install addes a line to the db.ini.php file (include_once("/etc/roundcube/debian-db.php");) this file contains db connection details that should set $rcmail_config['db_dsnw']. I had to add the include statement to the new db.ini.php and add a line to set $rcmail_config['db_dsnw'] ($rcmail_config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver:$dbport/$dbname";) then restarted apache.