Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Switched Servers, now have backup warnings


Kevin360

Recommended Posts

I recently switched servers (to a VPS). When attempting a backup under admin I see this warning at the top

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/gzip) is not within the allowed path(s): (/var/www/vhosts/rhythmhousedrums.com/httpdocs:/tmp) in /var/www/vhosts/rhythmhousedrums.com/httpdocs/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): (/var/www/vhosts/rhythmhousedrums.com/httpdocs:/tmp) in /var/www/vhosts/rhythmhousedrums.com/httpdocs/admin/backup.php on line 444

 

any ideas what this is?

Link to comment
Share on other sites

There is FS path in config file.

You need to amke sure its set right.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

There is FS path in config file.

You need to amke sure its set right.

 

Satish

 

Thanks, all my file system paths in admin/includes/configuration.php is correct. Are you talking about something different? It looks like it's not finding gzip or zip... can you explain in more detail what I should do?

Thanks

Link to comment
Share on other sites

caused by the open_basedir restriction on your server.

 

This should resolve things:

 

admin/includes/application_top.php (42):

 

// 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');

 

replace with:

 

 

// Used in the "Backup Manager" to compress backups

define('LOCAL_EXE_GZIP', 'gzip');

define('LOCAL_EXE_GUNZIP', 'gunzip');

define('LOCAL_EXE_ZIP', 'zip');

define('LOCAL_EXE_UNZIP', 'unzip');

 

also I would recommend AutoBackup Database in Admin http://addons.oscommerce.com/info/2314

AND Database backup manager http://addons.oscommerce.com/info/5769

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

caused by the open_basedir restriction on your server.

 

This should resolve things:

 

admin/includes/application_top.php (42):

 

// 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');

 

replace with:

 

 

// Used in the "Backup Manager" to compress backups

define('LOCAL_EXE_GZIP', 'gzip');

define('LOCAL_EXE_GUNZIP', 'gunzip');

define('LOCAL_EXE_ZIP', 'zip');

define('LOCAL_EXE_UNZIP', 'unzip');

 

also I would recommend AutoBackup Database in Admin http://addons.oscommerce.com/info/2314

AND Database backup manager http://addons.oscommerce.com/info/5769

 

Thanks.. That fixed it!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...