Roundcube Database Error with VestaCP on CentOS 6.5

Posted May 12, 2014 6.5k views
Hey guys, I've been having a problem with Roundcube mail on my server. After successfully installing VestaCP on my server, I try to log into Roundcube but receive a database error every time: DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator. Thanks for any help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
Read the error. Think about what it says. Think about what it means. Look into the reasons it might be saying that.
Check all of the pieces of your database connection - host name or address, user name, password, privileges, database server status.
This is the down side to using "all-in-one" control panel installations. My experience has been that they generally don't work right out of the box. Maybe they do for some people, but not for me. I've had that experience with ISPConfig and Virtualmin. After giving up on ISPConfig, I installed Virtualmin and still spent a week troubleshooting the postfix configuration that Virtualmin installed. In the future, I'll probably skip the control panel and do it all myself since I now have a much better working knowledge of all the nuts and bolts than I did before.
Figured it out. The install for VestaCP was messed up. Upon initial install VestaCP was not able to grab the sql file for setting up the initial roundcube tables. I just manually pasted them in. Working fine now.
Hi PeterTucker02568,

Currently I've been having the same problem. Can you tell us how you solved step by step? What we need to do to make it work?

Thanks for any help.