Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Backup directory does not exist. Please se


Guest

Recommended Posts

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

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

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

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

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

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

Archived

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

×
×
  • Create New...