| Summary: | mail/roundcube not functional after portupgrade | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | understudy |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
understudy
2013-08-04 14:30:00 UTC
I am adding my db.inc.php for more complete information. My db.inc.php file <?php /* +-----------------------------------------------------------------------+ | Configuration file for database access | | | | This file is part of the Roundcube Webmail client | | Copyright (C) 2005-2012, 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. | | | +-----------------------------------------------------------------------+ */ $rcmail_config = array(); // PEAR database DSN for read/write operations // format is db_provider://user:password@host/database // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-ds // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql or sqls $rcmail_config['db_dsnw'] = 'mysql://roundcube:example@unix(/tmp/mysql.sock)/r // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail'; // Warning: for SQLite use absolute path in DSN: // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646'; // PEAR database DSN for read only operations (if empty write database will be u // useful for database replication $rcmail_config['db_dsnr'] = ''; // use persistent db-connections // beware this will not "always" work as expected // see: http://www.php.net/manual/en/features.persistent-connections.php $rcmail_config['db_persistent'] = FALSE; // you can define specific table names used to store webmail data $rcmail_config['db_table_users'] = 'users'; $rcmail_config['db_table_identities'] = 'identities'; $rcmail_config['db_table_contacts'] = 'contacts'; $rcmail_config['db_table_contactgroups'] = 'contactgroups'; $rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers'; $rcmail_config['db_table_session'] = 'session'; $rcmail_config['db_table_cache'] = 'cache'; $rcmail_config['db_table_cache_index'] = 'cache_index'; $rcmail_config['db_table_cache_thread'] = 'cache_thread'; $rcmail_config['db_table_cache_messages'] = 'cache_messages'; $rcmail_config['db_table_dictionary'] = 'dictionary'; $rcmail_config['db_table_searches'] = 'searches'; $rcmail_config['db_table_system'] = 'system'; // you can define specific sequence names used in PostgreSQL $rcmail_config['db_sequence_users'] = 'user_ids'; $rcmail_config['db_sequence_identities'] = 'identity_ids'; $rcmail_config['db_sequence_contacts'] = 'contact_ids'; $rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids'; $rcmail_config['db_sequence_searches'] = 'search_ids'; // end db config file More information.
Here is what is in rcube_db.php on line 75.
70. $driver = isset($driver_map[$driver]) ? $driver_map[$driver]
: $driver;
71. $class = "rcube_db_$driver";
72.
73. if (!$driver || !class_exists($class)) {
74. rcube::raise_error(array('code' => 600, 'type' => 'db',
75. 'line' => __LINE__, 'file' => __FILE__,
76. 'message' => "Configuration error. Unsupported
database driver:
77. true, true);
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer (via the GNATS Auto Assign Tool) A recent port upgrade to the following version: roundcube-0.9.3_1,1 does not resolve the issue. Same result. This port is still not functional. This was solved for me by either 1) creating a symlink to the roundcubemail conf files if they are outside the roundcube dir (e.g. to /etc/roundcube) 2) make sure the conf files and the dir can be read by the web server (e.g. chown to nginx or www) On 09/24/13 22:43, Mikk Mekk wrote: > This was solved for me by either > > 1) creating a symlink to the roundcubemail conf files if they are > outside the roundcube dir (e.g. to /etc/roundcube) > 2) make sure the conf files and the dir can be read by the web server > (e.g. chown to nginx or www) Hi Mikk, I assume you are talking about these files: /usr/local/www/roundcube/config/db.inc.php /usr/local/www/roundcube/config/db.inc.php.dist Trying to put them with a symlink to /etc/roundcube will fail since: postal# cd /etc/roundcube /etc/roundcube: No such file or directory. Your option #2 postal# ls -al total 104 drwxr-xr-x 2 root wheel 512 Aug 30 18:04 . drwxr-xr-x 11 root wheel 512 Aug 30 18:14 .. -r--r--r-- 1 root wheel 31 Aug 21 13:26 .htaccess -rw------- 1 root wheel 2906 Jun 1 16:34 db.inc.php -r--r--r-- 1 root wheel 2893 Aug 21 13:26 db.inc.php.dist -rw------- 1 root wheel 38411 Jun 1 16:38 main.inc.php -r--r--r-- 1 root wheel 38672 Aug 30 18:04 main.inc.php.dist -r--r--r-- 1 root wheel 2731 Aug 21 13:26 mimetypes.php postal# chown www db.inc.php postal# chown www main.inc.php postal# ls -al total 104 drwxr-xr-x 2 root wheel 512 Aug 30 18:04 . drwxr-xr-x 11 root wheel 512 Aug 30 18:14 .. -r--r--r-- 1 root wheel 31 Aug 21 13:26 .htaccess -rw------- 1 www wheel 2906 Jun 1 16:34 db.inc.php -r--r--r-- 1 root wheel 2893 Aug 21 13:26 db.inc.php.dist -rw------- 1 www wheel 38411 Jun 1 16:38 main.inc.php -r--r--r-- 1 root wheel 38672 Aug 30 18:04 main.inc.php.dist -r--r--r-- 1 root wheel 2731 Aug 21 13:26 mimetypes.php This option appears to have worked. Now I guess someone who can write code better than I needs to submit a patch. Sincerely, Brendhan State Changed From-To: open->closed Permission issue not related to port. |