Kevin360 Posted July 10, 2009 Share Posted July 10, 2009 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 More sharing options...
satish Posted July 10, 2009 Share Posted July 10, 2009 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 More sharing options...
Kevin360 Posted July 10, 2009 Author Share Posted July 10, 2009 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 More sharing options...
spooks Posted July 10, 2009 Share Posted July 10, 2009 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 More sharing options...
Kevin360 Posted July 10, 2009 Author Share Posted July 10, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.