Royal Flash
Verified User
- Joined
- Aug 19, 2012
- Messages
- 25
Hi.
I found a bug in /usr/local/directadmin/scripts/backup_roundcube.php in line 72: PHP function parse_ini_file() can not use for file /usr/local/directadmin/conf/mysql.conf because if variable passwd contain password with special symbols, example ";" or "^" password not parse. In this case backup_roundcube.php return error:
Please replace PHP function parse_ini_file() on something else because parse_ini_file() unsuitable for parse variable passwd.
I solved problem with error in message system RoundCube Backup Error after attempt backup: update password for user da_admin which did not contain the special symbols:
And update passwd in config files /usr/local/directadmin/conf/: my.cnf; mysql.conf.
This is not the best temporary solution, but it works.
P.S. Sorry for my English.
I found a bug in /usr/local/directadmin/scripts/backup_roundcube.php in line 72: PHP function parse_ini_file() can not use for file /usr/local/directadmin/conf/mysql.conf because if variable passwd contain password with special symbols, example ";" or "^" password not parse. In this case backup_roundcube.php return error:
Code:
Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'da_admin'@'localhost' (using password: YES) in /usr/local/directadmin/scripts/backup_roundcube.php on line 115
Failed to connect to MySQL: (1045) Access denied for user 'da_admin'@'localhost' (using password: YES)
Please replace PHP function parse_ini_file() on something else because parse_ini_file() unsuitable for parse variable passwd.
I solved problem with error in message system RoundCube Backup Error after attempt backup: update password for user da_admin which did not contain the special symbols:
Code:
mysql> SET PASSWORD FOR 'da_admin'@'localhost' = PASSWORD('MyNewPass');
mysql> FLUSH PRIVILEGES;
This is not the best temporary solution, but it works.
P.S. Sorry for my English.