Roundcube Community Forum

 

"SERVICE CURRENTLY NOT AVAILABLE!"

Started by Phase3, August 19, 2006, 10:10:49 AM

Previous topic - Next topic

Phase3

My error:

SERVICE CURRENTLY NOT AVAILABLE!

Error No. 1f4)

My error log:

[19-Aug-2006 09:40:07 -0400] DB Error: DB Error: connect failed in /home/riponcom/public_html/mail/program/include/rcube_db.inc on line 105
[19-Aug-2006 09:43:48 -0400] DB Error: DB Error: connect failed in /home/riponcom/public_html/mail/program/include/rcube_db.inc on line 105
[19-Aug-2006 09:52:36 -0400] DB Error: DB Error: connect failed in /home/riponcom/public_html/mail/program/include/rcube_db.inc on line 105

I have read previous topics on the same issue, however, I was unable to find any typos in my documents.

I haven't yet gone through the 'installation process' because I can't get to the index file. I have CDMODed the 'mysql.initial' to execute. I've used cpanel to create the databases/username. They have named them as 'riponcom_roundcube' (database) and 'riponcom_cube' (username). Where as I named them originally as 'roundcube' (database) and 'cube' (username). I have replaced these as the paths but the programme still fails to work.

PHP version    4.4.2
MySQL version    4.1.21-standard


Db.inc.php:


/*
 +-----------------------------------------------------------------------+
 | Configuration file for database access                |
 |                                    |
 | This file is part of the RoundCube Webmail client           |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland           |
 | Licensed under the GNU GPL                      |
 |                                    |
 +-----------------------------------------------------------------------+

*/

$rcmail_config = array();

// PEAR database DSN for read/write operations
// format is db_provider://user:password@host/databse
// currentyl suported db_providers: mysql, sqlite

$rcmail_config['db_dsnw'] = 'mysql://cube:password@riponcommunitychurch.co.uk/roundcube';
// postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
// sqlite example: 'sqlite://./sqlite.db?mode=0646';

// PEAR database DSN for read only operations (if empty write database will be used)
// useful for database replication
$rcmail_config['db_dsnr'] = '';

// database backend to use (only db or mdb2 are supported)
$rcmail_config['db_backend'] = 'db';

// maximum length of a query in bytes
$rcmail_config['db_max_length'] = 512000; // 500K

// use persistent db-connections
$rcmail_config['db_persistent'] = TRUE;


// 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_session'] = 'session';

$rcmail_config['db_table_cache'] = 'cache';

$rcmail_config['db_table_messages'] = 'messages';


// 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_cache'] = 'cache_ids';

$rcmail_config['db_sequence_messages'] = 'message_ids';


// end db config file
?>

Thanks.

simplistsims

in Cpanel did you add the users to the database??
Duca Duca Duca Duca - Dr. Evil *Say it fast*

Phase3


simplistsims

no thats fine. I noticed ure using ure domain as a databse if im not mistaken. Try changing the databases name if poss to somethin withnout dots. :P
Duca Duca Duca Duca - Dr. Evil *Say it fast*

Phase3

"Database Configuration ÃÂ,Ã,¶
First thing we need to do is decide what database backend we'll use. The most common is mySQL but others are PostgreSQL and SQLite. So once you decide, think about the username and password you want to use, as well as a name for a database to use. Once you've decided that, write it out like this:

backend://username:password@domain.com/database

An example would be "mysql://demouser:password@mydomain.com/roundcube". Now, take that and in the "db.inc.php.dist" file find the line that starts with: $rcmail_config['db_dsnw'] and replace the string that is currently there with the one we've come up with. Save that file as "db.inc.php" (note that we dropped the "dist" off the name). "

I'll remove the domain.

Edit: I changed the 'mydomain.com' parts to 'localhost' and it makes no difference.

Midnyte

Hi guys,
 I too have this problem with the SVN :( . I run the beta-2 version on my live webmail and its fine, using the same config files for the SVN I get this error. I have diff'd the config files and all looks fine :'( just can't run the SVN. I know my DB is ok cos it's the same one i use for live......

Cheers,

Andy

Phase3

It would appear that I posted this topic in the wrong place. :-[