Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/gzip) is not within the allowed path(s): (/home/XXXXX/usr/lib/php:/usr/local/lib/php:/tmp) in /home/helihob/public_html/admin/backup.php on line 443
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/bin/zip) is not within the allowed path(s): (/home/XXXXX/usr/lib/php:/usr/local/lib/php:/tmp) in /home/helihob/public_html/admin/backup.php on line 444
The code in backup.php only looks if the file/executable of gzip and zip exist to determine if you can zip or gzip backups. Unfortunately, the open_basedir stuff was invented after that and while the file exists it won’t allow you to use it.
The remedy is to make sure backup.php thinks the file is not there. This is a bit hidden IMO, in admin/includes/application_top.php around line 40:
CODE
// Used in the “Backup Manager” to compress backups
define(‘LOCAL_EXE_GZIP’, ‘/usr/bin/gzip’);
define(‘LOCAL_EXE_GUNZIP’, ‘/usr/bin/gunzip’);
define(‘LOCAL_EXE_ZIP’, ‘/usr/local/bin/zip’);
define(‘LOCAL_EXE_UNZIP’, ‘/usr/local/bin/unzip’);
If you change it (I think this should work) you won’t have the problem anymore:
CODE
// Used in the “Backup Manager” to compress backups
define(‘LOCAL_EXE_GZIP’, ‘gzip’); // originally: ‘/usr/bin/gzip’);
define(‘LOCAL_EXE_GUNZIP’, ‘gunzip’); // originally ‘/usr/bin/gunzip’);
define(‘LOCAL_EXE_ZIP’, ‘zip’); // originally: ‘/usr/local/bin/zip’);
define(‘LOCAL_EXE_UNZIP’, ‘unzip’); // originally: ‘/usr/local/bin/unzip’);

Recent Comments