Build Roundcube error

HostingGrounds

Verified User
Joined
Dec 11, 2009
Messages
27
Hi all,

I have a problem with Roundcube.

Currently it displays the error: "DATABASE ERROR: CONNECTION FAILED!".
I checked the MySQL server, and the "da_roundcube" database does not exists.
Also, the database does not exists in "/var/lib/mysql".

The solutions online are, run the build script (./build roundcube) again!
Allright, let's run the build script... Output:

Code:
root@web01:/usr/local/directadmin/custombuild# ./build roundcube
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
cp: `/var/www/html/roundcube/logs' and `/var/www/html/roundcubemail-1.1.1/logs' are the same file
cp: `/var/www/html/roundcube/temp' and `/var/www/html/roundcubemail-1.1.1/temp' are the same file
Editing roundcube configuration...
Roundcube 1.1.1 has been installed successfully.
**********************************************************************
* 
* SECURITY: /var/www/html/roundcubemail-1.1.1/config/config.inc.php is readable by apache.
* Recommended: use a php type that runs php scripts as the User, then re-install roundcube.
* For CB1.2, use suPhp: http://help.directadmin.com/item.php?id=197
* Or update CB2.0 with defaults: http://help.directadmin.com/item.php?id=555 (mod_php+mod_ruid2)
*
**********************************************************************
-r--r----- 1 webapps apache 4501 Apr 21 10:24 /var/www/html/roundcubemail-1.1.1/config/config.inc.php
PHP Warning:  ini_set(): SAFE MODE Restriction in effect.  The script whose uid is 102 is not allowed to access /var/www/html/roundcubemail-1.1.1/logs/errors owned by uid 1001 in /var/www/html/roundcubemail-1.1.1/program/lib/Roundcube/rcube_config.php on line 258

Warning: ini_set(): SAFE MODE Restriction in effect.  The script whose uid is 102 is not allowed to access /var/www/html/roundcubemail-1.1.1/logs/errors owned by uid 1001 in /var/www/html/roundcubemail-1.1.1/program/lib/Roundcube/rcube_config.php on line 258
Executing database schema update.
sh: /usr/local/php/bin/php: No such file or directory
sh: /usr/local/php/bin/php: No such file or directory

Hey, PHP is not found! Let's do a "which php" command, output:

Code:
root@web01:/usr/local/directadmin/custombuild# which php
/usr/local/bin/php

Allright then! So it tries to execute PHP in the wrong directory.

My question is, where can I edit this path, so I can rebuild Roundcube?
And, how did this error occur out of the blue (has worked before)?

Thanks in advance.
 
Last edited:
Allright, I found the problem.

In the roundcube folder, there is a bin/update.sh
It died when it tried to execture the .sql files.

There is a function system which is used to execute a php statement.
I echo'd that line, and ran it myself, and now it works again.

Code:
root@web01:# php /var/www/html/roundcubemail-1.1.1/bin/updatedb.sh --package=roundcube --version=1.1.1 --dir=/var/www/html/roundcubemail-1.1.1/SQL
 
Back
Top