New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Roundcube: database error: connection failed

Started by Heartneto, February 13, 2015, 06:05:48 PM

Previous topic - Next topic

Heartneto

Hello!
I'm new in CentOS Web Panel and i need your help.
cwp version 0.9.8
mysql version 5.1
php version 5.4(recommended)
CentOS 6.6 final x86_64

As it was mentioned, my Roundcube can't connect to the database.
I've add a new user account and would test it but when i want to check it, Roundcube occured an error

Regards,

kod007

ssh root

cd /usr/local/apache/htdocs/roundcube/config/

nano db.inc.php

$rcmail_config['db_dsnw'] = 'mysqli://roundcube:password@localhost/roundcube';

change

$rcmail_config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';



mysqli change mysql :)


zustudios

Hi
I'm a nubie also and I got the same error message but I'm not understanding the commands listed above.
can someone break it down a little lower in a step by step format please.I'm running centos 6

Administrator

this are not commands, you need to edit file and make replacement.
What kind of changes have you done that you have this errors ?

musman

#5
Hi
i have update my CWP and my webmail stopped working, saying
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.

it was accessible through https://www.domain.com/webmail but it is giving above error with this URL
Roundcube is acessible with IP:2030/roundcube but i want to access it with domain/webmail again
kindly help in that
MySQL version: 10.1.19-MariaDB
CWP version: 0.9.8.339
Apache version: Apache/2.2.31
Thanks

musman

Resolved the issue by changing the roundcube pwd and updating in config.inc file