Author Topic: Is my configuration incorrect?  (Read 76 times)

Offline Polarian

  • Newbie
  • *
  • Posts: 2
Is my configuration incorrect?
« on: November 23, 2022, 03:34:00 AM »
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:

Code: [Select]
<?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): &#39;sqlite:////full/path/to/sqlite.db?mode=0646&#39;
//       or (Windows): &#39;sqlite:///C:/full/path/to/sqlite.db&#39;
$config[&#39;db_dsnw&#39;] = &#39;sqlite:///var/lib/roundcubemail/roundcube.sqlite?mode=0646&#39;;

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

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

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

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

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

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

// 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[&#39;des_key&#39;] = &#39;ewTT8FE5UkGtmaXiY70kUiC9&#39;;

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

// skin name: folder from skins/
$config[&#39;skin&#39;] = &#39;elastic&#39;;

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

Errors:

Code: [Select]
[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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,783
    • SKaero - Custom Roundcube development
Re: Is my configuration incorrect?
« Reply #1 on: November 23, 2022, 11:47:54 PM »
Does your configuration file really have &#39; where there should be quotes?