Question

Roundcube Database Error with VestaCP on CentOS 6.5

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi PeterTucker02568, <br> <br>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? <br> <br>Thanks for any help. <br>

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.

Read the error. Think about what it says. Think about what it means. Look into the reasons it might be saying that. <br>Check all of the pieces of your database connection - host name or address, user name, password, privileges, database server status. <br>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.