Admin Database Backup

Open to all! Ask other shopowners for help.
Post Reply
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Admin Database Backup

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Re: Admin Database Backup

Post by ReneH4 »

Specific Version?

Works without changes on my 1079 site....
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Admin Database Backup

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply