Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Backup directory does not exist


chrisso69

Recommended Posts

Posted

I'm trying to backup everything before intalling some contibutions but i get this error:

 

Error: Backup directory does not exist. Please set this in configure.php.

 

How do i set in configure.php?

 

Cheers,

 

Chris

Posted

Make sure you have a folder named backups in /admin/

 

so...catalog/admin/backups

 

And make sure it's writeable...so set the permissions of /backups/ to 755

 

Go back and see if the error is still there

 

If so, try 777 for permissions of /backups/

 

Then the error *should* be gone

 

If it's not, then your paths might not be set correctly in your admin/includes/configure.php file

 

And PS ...the backup tool that you're working on only backs up the database. Don't forget to download your files to back them up too. :)

 

Second PS ...Now that I woke up a little I think that your problem does lie in the configure.php file, but do check those other things too. If you're not sure what to do w/the configure.php file, you can post it here...just XXXXX out your db info at the bottom, or just leave it out.

Posted

I've checked the backup folder and the permissions are set to 777

 

My hosting provider installed oscommerce for me and looking through this file it seems that some of the paths have not ben set, also i can't find any reference to the backup folder?

 

Ps. did'th know what to blank out so sent it all!?

 

<?php

/*

$Id: configure.php,v 1.4 2003/10/01 09:08:17 serg Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', ''); // 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', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', '/catalog/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define(xxxx); // eg, localhost - should not be empty for productive servers

define(xxxx);

define(xxxx);

define(xxxx);

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Posted

ok, that one is actually catalog/includes/configure.php ...that's my fault as I said "the" configure.php file, sorry.

 

the one causing you the backups error is catalog/admin/includes/configure.php

 

But, as you said there were a few things missing.

 

Here's the one you posted w/ a few additions.

 

You did fine w/ the xxx's ...I did change one thing down in that section, though. The define('STORE_SESSIONS', ''); entry at the bottom.

 

Just replace yoursite.com with the real name of your site. Then, feel free to post the other one (...admin/includes/configure.php) :)

 

<?php
/*
$Id: configure.php,v 1.4 2003/10/01 09:08:17 serg Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright ? 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://yoursite.com'); // 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', 'yoursite.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('DIR_WS_IMAGES', '/catalog/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define(xxxx); // eg, localhost - should not be empty for productive servers
define(xxxx);
define(xxxx);
define(xxxx);
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Posted

I've solved the problem, i hit my hosting provider up with the problem and they sorted it.

 

I'll integrate your changes to configure.php

 

Thankyou very much for all your help, much appreciated.

 

Cheers,

 

Chris

Archived

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

×
×
  • Create New...