Moderator: Integra Moderator
disable_functions no value no value
$last_backup != $today) && (date('H') >= $backup_time
system("/usr/bin/mysqldump -u". $dbuser ." -p". $dbpasswd ." -h ". $dbhost ." ". $dbname ." > ". (($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : $HTTP_SERVER_VARS['DOCUMENT_ROOT']) . $board_config['.script_path'] . $backup_folder ."/". $backup_file ."-". date('Y-m-d') .".sql", $fp);
"Teelk";p="20640" wrote:If the value is empty then there aren't any disabled functions. So, the system command isn't disabled on your server.
The only other thing I can think of is that the following conditions aren't being met...
- Code: Select all
$last_backup != $today) && (date('H') >= $backup_time
Check the field phpBBSecurity_last_backup_date in your config table. See if it's updated to the correct date, should be the day of the month.
<php>
"Teelk";p="20641" wrote:Also, the path to mysqldump may be different on your server. The backup function only has one path, which may not be yours.
So, open includes/phpbb_security.php and find the following line...
- Code: Select all
system("/usr/bin/mysqldump -u". $dbuser ." -p". $dbpasswd ." -h ". $dbhost ." ". $dbname ." > ". (($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : $HTTP_SERVER_VARS['DOCUMENT_ROOT']) . $board_config['.script_path'] . $backup_folder ."/". $backup_file ."-". date('Y-m-d') .".sql", $fp);
You need to find your path to mysqldump.exe and place it where it says /usr/bin/
mysqldump is in reference to the file itself.
Registered users: App360MonitorBot, Bing [Bot], Google [Bot]