RoundCube Backup Error: Cannot read mysql configuration file: /usr/local/directadmin/conf/mysql.conf

Wanabo

Verified User
Joined
Jan 19, 2013
Messages
354
Location
The Netherlands
How to fix this? My first guess is a permission problem.

Code:
RoundCube Backup Error: Cannot read mysql configuration file: /usr/local/directadmin/conf/mysql.conf

RoundCube Backup returned 5: /home/tmp/admin.76954.Ukcf2Plx3LBXowDLkzdx2KaoQJCdPEas/KRjGAqBJH25L7ZQzr8h9da0r0AJjpieF/admin/backup/somedomain.com/email/data/roundcube.xml: No such file or directory
/home/tmp/admin.76954.Ukcf2Plx3LBXowDLkzdx2KaoQJCdPEas/KRjGAqBJH25L7ZQzr8h9da0r0AJjpieF/admin/backup/somedomain.com/email/data: 'admin:admin' drwx------, viewed as root:root
...........
Lot more entries
...........
/home/tmp: 'root:root' drwxrwxrwt, viewed as root:root
/home: 'root:root' drwxr-xr-x, viewed as root:root
/: 'root:root' dr-xr-xr-x, viewed as root:root
 <16:56:29>

Although a backup error has occurred, the upload of valid backups would have still been attempted to ftp://somedomain.com/6 <16:57:38>

./set_permissions.sh da_files and ./set_permissions.sh mysql does not fix it.

Edit. It seems I cannot open roundcube or phpmyadmin from DA panel. In both cases I get this message: No input file specified. To avoid any confusion this file exists and have the correct content: /usr/local/directadmin/conf/mysql.conf

Edit. I did a da build phpmyadmin according to this doc, https://docs.directadmin.com/other-hosting-services/mariadb-mysql/phpmyadmin.html
But this does not solve it.
I did a da build roundcube and it throws errors:
Code:
download_cached: using cached '/usr/local/directadmin/custombuild/cache/roundcubemail-1.6.9-complete.tar.gz' file

Found MySQL version 10.6

Granting access: GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,LOCK TABLES,INDEX,REFERENCES ON da_roundcube.* TO 'da_roundcube'@'localhost';

Setting password: ALTER USER 'da_roundcube'@'localhost' IDENTIFIED BY 'xxxxxxxxxxxxxxxxxxxxxx';

Editing roundcube configuration...

Roundcube 1.6.9 has been installed successfully.

PHP Warning:  realpath(): open_basedir restriction in effect. File(/var/www/html/roundcubemail-1.6.9) is not within the allowed path(s): (/home/) in /var/www/html/roundcubemail-1.6.9/bin/update.sh on line 21

PHP Warning:  require_once(): open_basedir restriction in effect. File(/program/include/clisetup.php) is not within the allowed path(s): (/home/) in /var/www/html/roundcubemail-1.6.9/bin/update.sh on line 23

PHP Warning:  require_once(/program/include/clisetup.php): Failed to open stream: Operation not permitted in /var/www/html/roundcubemail-1.6.9/bin/update.sh on line 23

PHP Fatal error:  Uncaught Error: Failed opening required '/program/include/clisetup.php' (include_path='.:/usr/local/php81/lib/php') in /var/www/html/roundcubemail-1.6.9/bin/update.sh:23

Stack trace:

#0 {main}

  thrown in /var/www/html/roundcubemail-1.6.9/bin/update.sh on line 23

Getting a bit desperate here.

See also this thread of mine: CustomBuild wp-cli open_basedir restriction in effect
 
Last edited:
Back
Top