Admin Database Backup
Posted: Sat Feb 19, 2022 8:59 am
This could be specific to our host but Admin>Tools>Database Backup - click Backup gives:
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/gzip) is not within the allowed path(s): (//:/dev/urandom) in//admin/backup.php on line 440
Warning : file_exists(): open_basedir restriction in effect. File(/usr/bin/zip) is not within the allowed path(s): (//:/dev/urandom) in //admin/backup.php on line 441
After some research we found that this error is 'fixed' by changing, from Line 16 in /admin/backup.php, to:
This seems to work for us but maybe this is not the right way to fix it?
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/gzip) is not within the allowed path(s): (//:/dev/urandom) in//admin/backup.php on line 440
Warning : file_exists(): open_basedir restriction in effect. File(/usr/bin/zip) is not within the allowed path(s): (//:/dev/urandom) in //admin/backup.php on line 441
After some research we found that this error is 'fixed' by changing, from Line 16 in /admin/backup.php, to:
Code: Select all
// define('LOCAL_EXE_GZIP', '/usr/bin/gzip');
define('LOCAL_EXE_GZIP', 'gzip');
// define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');
define('LOCAL_EXE_GUNZIP', 'gunzip');
// define('LOCAL_EXE_ZIP', '/usr/bin/zip');
define('LOCAL_EXE_ZIP', 'zip');
// define('LOCAL_EXE_UNZIP', '/usr/bin/unzip');
define('LOCAL_EXE_UNZIP', 'unzip');