Submitted by uinfor on Fri, 02/03/2017 - 04:48 Pro Licensee
I'm sorry but from yesterday i have an error when i acces to all my webmail domains, i use Roundcube and i have this error in all domains:
DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator.
Status:
Active
Comments
Submitted by uinfor on Fri, 02/03/2017 - 04:53 Pro Licensee Comment #1
The last make that i remember is update all to Roundcube 1.2.3
Submitted by andreychek on Fri, 02/03/2017 - 08:30 Comment #2
Howdy -- just to verify, is RoundCube the only web app having problems connecting to the database?
Your other web apps/sites are able to access the database without a problem?
Submitted by uinfor on Fri, 02/03/2017 - 09:51 Pro Licensee Comment #3
Yes, only have problems with roundcube
Submitted by uinfor on Fri, 02/03/2017 - 10:17 Pro Licensee Comment #4
I view this but i think virtualmin install Roundcube diferent, can you help me ??
https://crybit.com/database-error-roundcube/
Submitted by andreychek on Fri, 02/03/2017 - 10:42 Comment #5
I haven't run into a problem such as that before, but you may want to look in the Apache error log located in $HOME/logs/error_log to see if any additional errors are being logged.
You may also want to review the RoundCube config file, and verify that the database username and password are listed there and correct.
Submitted by uinfor on Fri, 02/03/2017 - 10:51 Pro Licensee Comment #6
I uninstall script roundcube and install and its working now but in one domain, i have a 75 domains with roundcube, can i make automatically ??
Submitted by andreychek on Fri, 02/03/2017 - 12:20 Comment #7
We'd generally recommend having just one "generic" domain that all domains use to access their RoundCube email.
For example, if your company name is hosting.biz, installing RoundCube into hosting.biz/roundcube and then secure that domain with SSL.
You could also use the URL redirects in the Apache Server Template to set it up so that webmail.domain.com would redirect to your preferred RoundCube installation.
If you need to install RoundCube into multiple domains, the best way to do that would be to use the Virtualmin command line tools.
You can see a list of options by running this command:
virtualmin install-script
You could then write a script that uses that to loop over all your domains and run that command.
However, writing scripts can be tricky if that's not something you're familiar with, and we'd suggest going the route of just having one RoundCube installation if that's possible.
Submitted by uinfor on Fri, 02/03/2017 - 12:37 Pro Licensee Comment #8
Thank you Andrey, can i make a "virtualmin install-script --domain all-domains roundcube" or similar ??? if you have some example or page to read, i can not view nothing in wiki
Submitted by andreychek on Fri, 02/03/2017 - 15:32 Comment #9
We don't have examples of that specifically, though there are other command line examples here:
https://virtualmin.com/documentation/developer/cli_examples