Error building Roundcube

guidomallee

Verified User
Joined
Jun 7, 2013
Messages
15
For some reason Roundcube isn't working and produces the following error: 'DATABASE ERROR: CONNECTION FAILED!'

So I tried to use this work-around (http://help.directadmin.com/item.php?id=206) but I got an error when building roundcube:

Code:
root@server1:/usr/local/directadmin/custombuild# ./build roundcube
--2013-11-26 20:04:15--  http://files.directadmin.com/services/all/roundcube/roundcubemail-0.9.5.tar.gz
Resolving files.directadmin.com... 69.30.193.202, 216.144.254.90
Connecting to files.directadmin.com|69.30.193.202|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3659531 (3.5M) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/roundcubemail-0.9.5.tar.gz'

100%[=========================================================================>] 3,659,531   1.55M/s   in 2.2s

2013-11-26 20:04:18 (1.55 MB/s) - `/usr/local/directadmin/custombuild/roundcubemail-0.9.5.tar.gz' saved [3659531/3659531]

Inserting data to mysql and creating database/user for roundcube...
Database created, da_roundcube password is ******
Editing roundcube configuration...
Roundcube 0.9.5 has been installed successfully.
Executing database schema update.
ERROR: Error connecting to database: SQLSTATE[HY000] [2002] No such file or directory<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Roundcube Webmail :: ERROR</title>
<link rel="stylesheet" type="text/css" href="skins/larry/common.css" />
</head>
<body>

<table border="0" cellsapcing="0" cellpadding="0" width="100%" height="80%"><tr><td align="center">

<div>
<h3 class="error-title">SERVICE CURRENTLY NOT AVAILABLE!</h3>
<p class="error-text">Error No. [500]</p>
</div>

</td></tr></table>

</body>
</html>

Any clue what this might be? Thanks!
 
I just solved the problem. I already discoverd eaerlier that for some reason the mysqli.default_socket was'nt set in my php.ini file. Now I discovered that the pdo_mysql.default_socket also wasn't set yet. Pointing it to /tmp/mysql.sock and restarting php-fpm solved the problem.
 
Back
Top