Guest Posted June 19, 2004 Share Posted June 19, 2004 Alright, so I had been trying to back up my database via the Tools->Backup function, and it gives me this message: Error: Backup directory does not exist. Please set this in configure.php. Whichever configure.php file references the backup directory says something along the lines of 'define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); Also, in the backups page it says: Backup directory: http://10.1.12.253/osc/catalog/admin/backups/ Realize, my current location in the browser is at "http://10.1.12.253/osc/catalog/admin" at this time, and that "C:\swamp\www\osc\catalog\admin\backups\" exists as a folder. So what am I doing wrong? I'm uploading to a website and I wanted this feature to work (though I don't urgently need it). Thank you! Mike Link to comment Share on other sites More sharing options...
AlanR Posted June 19, 2004 Share Posted June 19, 2004 So... you created the directory admin/backups. and... you remembered to set the permissions to 777, right? Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
241 Posted June 19, 2004 Share Posted June 19, 2004 first question is what is the path set in the configure.php file for DIR_FS_ADMIN as this has a bearing on the eventual path. is the directory backups permission set to chmod 777 No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Guest Posted June 19, 2004 Share Posted June 19, 2004 I knew it wasn't osC, but I thought I'd get a few more posts--and I did! Question: How do I "chmod to 777"? Does this mean I'm changing folder permissions? If so, I've never had to do that yet. Please tell me how or point me to documentation. Thanks again! You guys are great! Mike Link to comment Share on other sites More sharing options...
241 Posted June 19, 2004 Share Posted June 19, 2004 yes this is changing folder permissions. I note that the path given above is c:\swamp this would suggest to me that this is installed on your local machine No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Dubai Posted June 19, 2004 Share Posted June 19, 2004 its easy using WS-FTP Pro just right click on the file u want to change the mode go to propirtes and u can change the mode from there here a link where u can download free trail of ws http://www.download.com/WS-FTP-Pro/3000-21...tml?tag=lst-0-8 Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 Still not working, and I've got the backups folder perms set to 777. Any other ideas? Link to comment Share on other sites More sharing options...
241 Posted June 20, 2004 Share Posted June 20, 2004 then you will need to check your paths in the configure.php files post the file but xxx out the database info at the bottom. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 The file system paths must use forward slashes :) Matti Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 Sorry, where do I put forward slashes? For all paths? What constitutes a "system path?" Thank you! Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 Yes, all paths :D What constitutes a "system path?" DIR_FS_ADMIN = 'directory file system admin' :P Matti Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 Mike, I had the same problem. You will have to go in the admin directory and create a sub-directory and name it "backpups". osCommerce does not install the backups directory automatically. Hope this helps. Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 I already have /forward slashes/ for all my paths. I only listed C:\blah\whatever\blahblah\ because it was a local path. The system folders still read http://ip.address/directory/catalog/admin/ and the backup folder is still backups/. It is created, and perms are 777. Any other ideas? What do yours look like? Link to comment Share on other sites More sharing options...
AlanR Posted June 20, 2004 Share Posted June 20, 2004 He's saying that paths in php are forward slashes. So when you put slashes in a php file they are foward ones. The last time I saw someone have this much trouble with the backups folder it was because the define('DIR_FS_ADMIN', was not defined explicitly, it was still define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 What do yours look like? ?define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers ?define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers ?define('ENABLE_SSL', false); // secure webserver for checkout procedure? ?define('HTTP_COOKIE_DOMAIN', 'localhost'); ?define('HTTPS_COOKIE_DOMAIN', ''); ?define('HTTP_COOKIE_PATH', '/catalog/'); ?define('HTTPS_COOKIE_PATH', ''); ?define('DIR_WS_HTTP_CATALOG', '/catalog/'); ?define('DIR_WS_HTTPS_CATALOG', ''); ?define('DIR_WS_IMAGES', 'images/'); ?define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); ?define('DIR_WS_INCLUDES', 'includes/'); ?define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); ?define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); ?define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); ?define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); ?define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); ?define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); ?define('DIR_FS_CATALOG', 'c:/foxserv/www/catalog/'); ?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); ?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); 'local path' = 'file system path' :lol: Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2004 Share Posted June 20, 2004 Thanks. All set. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.