Page 1 of 1

Admin Database Backup

Posted: Sat Feb 19, 2022 8:59 am
by heatherbell
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:

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');
This seems to work for us but maybe this is not the right way to fix it?

Re: Admin Database Backup

Posted: Sat Feb 19, 2022 10:22 am
by ReneH4
Specific Version?

Works without changes on my 1079 site....

Re: Admin Database Backup

Posted: Sat Feb 19, 2022 11:08 am
by heatherbell
ReneH4 wrote: Sat Feb 19, 2022 10:22 am Specific Version?
Works without changes on my 1079 site....
Nothing to do with PhoenixCart version, same issue for us on all recent versions - it is an issue with our host server.
I only posted in case it helps anyone else who encounters the same issue or anyone else has a better fix.