Author Topic: switching from squirrelmail, but roundcube not communicating  (Read 14361 times)

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 20
Re: switching from squirrelmail, but roundcube not communicating
« Reply #30 on: January 10, 2019, 12:08:36 AM »
OK, so I fixed my apache2 server and when I now run info.php, all the diagnostics point to php7.2

roundcube still doesn't work and the error message:

DB Error: Configuration error. Unsupported database driver:  in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 84 (GET /index.php)

still appears.  Looking at the code on line 84, I note the error message doesn't include $driver

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: switching from squirrelmail, but roundcube not communicating
« Reply #31 on: January 10, 2019, 01:08:26 AM »
Can you post your config.inc.php?

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 20
Re: switching from squirrelmail, but roundcube not communicating
« Reply #32 on: January 10, 2019, 11:33:08 AM »
Changed the password to ******

<?php

/* Local configuration for Roundcube Webmail */

// ----------------------------------
// SQL DATABASE
// ----------------------------------
// Database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite, mssql, sqlsrv, oracle
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
// NOTE: for SQLite use absolute path (Linux): 'sqlite:////full/path/to/sqlite.db?mode=0646'
//       or (Windows): 'sqlite:///C:/full/path/to/sqlite.db'
$config['db_dsnw'] = 'mysql://roundcube:********@localhost/roundcubedb';

/* Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database ! */// The IMAP host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
$config['default_host'] = 'ssl://imap.ge.xfinity.com';

// TCP port used for IMAP connections
$config['default_port'] = 993;

$config['imap_conn_options'] = array(
  'ssl' => array(
    'verify_peer'  => false,
  ),
);

// SMTP server host (for sending mails).
// Enter hostname with prefix tls:// to use STARTTLS, or use
// prefix ssl:// to use the deprecated SSL over SMTP (aka SMTPS)
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = 'smtp.comcast.net';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$config['smtp_port'] = 465;

// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '';

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
$config['des_key'] = 'ES20Lj8XrjT0jZpERP2NbPIm';

// List of active plugins (in plugins/ directory)
// Debian: install roundcube-plugins first to have any
$config['plugins'] = array();

// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$config['language'] = 'en_US';

// Disable spellchecking
// Debian: spellshecking needs additional packages to be installed, or calling external APIs
//         see defaults.inc.php for additional informations
$config['enable_spellcheck'] = false;

// Set the spell checking engine. Possible values:
// - 'googie'  - the default (also used for connecting to Nox Spell Server, see 'spellcheck_uri' setting)
// - 'pspell'  - requires the PHP Pspell module and aspell installed
// - 'enchant' - requires the PHP Enchant module
// - 'atd'     - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
// Since Google shut down their public spell checking service, the default settings
// connect to http://spell.roundcube.net which is a hosted service provided by Roundcube.
// You can connect to any other googie-compliant service by setting 'spellcheck_uri' accordingly.
$config['spellcheck_engine'] = 'pspell';


$config['enable_installer'] = true;

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: switching from squirrelmail, but roundcube not communicating
« Reply #33 on: January 10, 2019, 05:36:43 PM »
Interesting, where does the following line come from?
Code: [Select]
/* Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database ! */// The IMAP host chosen to perform the log-in.

It looks like you maybe using some sort of modified version of Roundcube that is doing something different with the database connection. I think thats why the installer can see it but not the main Roundcube install.

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 20
Re: switching from squirrelmail, but roundcube not communicating
« Reply #34 on: January 10, 2019, 05:58:41 PM »
I'm using the Ubuntu 18.04 version, installed using synaptic. Perhaps that package needs updating? Or do I need to uninstall and install from roundcube.net/download ?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: switching from squirrelmail, but roundcube not communicating
« Reply #35 on: January 10, 2019, 11:01:35 PM »
I would scrap that install and try a fresh install downloaded directly from Roundcube, use the complete package.