Roundcube Community Forum

 

Is my configuration incorrect?

Started by Polarian, November 23, 2022, 03:34:00 AM

Previous topic - Next topic

Polarian

Hello,

So I have been using the following configuration but then I also get issues with it, so I unsure if this is a bug with roundcube or something wrong with my configuration.

Configuration:


<?php

/*
 +-----------------------------------------------------------------------+
 | Local configuration for the Roundcube Webmail installation.           |
 |                                                                       |
 | This is a sample configuration file only containing the minimum       |
 | setup required for a functional installation. Copy more options       |
 | from defaults.inc.php to this file to override the defaults.          |
 |                                                                       |
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) The Roundcube Dev Team                                  |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
 | See the README file for a full license statement.                     |
 +-----------------------------------------------------------------------+
*/

$config = [];

// 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'] = 'sqlite:///var/lib/roundcubemail/roundcube.sqlite?mode=0646';

// IMAP host chosen to perform the log-in.
// See defaults.inc.php for the option description.
$config['imap_host'] = 'localhost:993';

// SMTP server host (for sending mails).
// See defaults.inc.php for the option description.
$config['smtp_host'] = 'localhost:587';

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$config['smtp_pass'] = '%p';

// 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'] = 'https;//polarian.dev';

// Name your service. This is displayed on the login screen and in the window title
$config['product_name'] = 'Polarian Mail';

// This key is used to encrypt the users imap password which is stored
// in the session record. For the default cipher method it must be
// exactly 24 characters long.
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
$config['des_key'] = 'ewTT8FE5UkGtmaXiY70kUiC9';

// List of active plugins (in plugins/ directory)
$config['plugins'] = [
    
'archive',
    
'zipdownload',
];

// skin name: folder from skins/
$config['skin'] = 'elastic';

$config['enable_installer'] = true;
$config['mime_types'] = '/etc/webapps/roundcubemail/config/mime.types';


Errors:


[22-Nov-2022 12:09:34 UTC] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/webapps/roundcubemail /program/lib/Roundcube/rcube_db.php on line 80
[22-Nov-2022 12:09:34 +0000]: DB Error: Configuration error. Unsupported database driver: in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_db .php on line 96 (GET /)


Any ideas would be appreciated!

Thanks,
Polarian

SKaero

Does your configuration file really have &#39; where there should be quotes?