Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Backup directory problems - I'm sure my config looks ok!


boomboom64

Recommended Posts

Posted

Hi OSC-ers

 

I'm getting this error:

 

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

 

I've read hundreds of posts here, all with this error, but I'm sure that there are none of the simple 'schoolboy' errors (which all of the posts I've read on this board are easily explained by) here.

 

I know that a directory needs to be created called 'backups' (not 'backup'), and that it's path needs to be specified in /admin/includes/configure.php, and I know that the permissions for the 'backups' directory need to be set at 777. I've done all that. However.....I get the error.

 

To be fair, I've strayed from a default installation, and my 'admin' directory lives in a directory called 'secure' (/var/www/html/secure/admin/ to be precise) and this is reflected in the paths contained in /var/www/html/secure/admin/configure.php. See below:

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', ''http://www.mybeutifullingerie.com); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', '');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/var/www/html'); // where the pages are located on the server
 define('DIR_WS_ADMIN', 'https://www.mybeautifullingerie.com/secure/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'https://www.mybeautifullingerie.com/secure/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', 'http://www.mybeautifullingerie.com/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/virtual/site101/fst/var/www/html/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

To make me more sure I'm not overlooking something obvious I'm also getting the line of feedback on the

backup.php page (Backup Manager page):

 

Backup Directory: https://www.mybeautifullingerie.com/secure/admin/backups/

 

...but I swear the ****ing folder is there with 777 permissions....aaaargh

 

I should say that I have a dedicated SSL cert on this server (I think!) and that this error happens whether I try either

 

https://www.mybeautifullingerie.com/secure/admin/backups/

 

or

 

http://www.mybeautifullingerie.com/secure/admin/backups/

 

Any wise words from you lot out there would rock my boat (and, hopefully, end my misery :D )

 

boomboom64

www.mac-daddy.co.uk

Posted

Try changing these lines

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html'); // where the pages are located on the server
define('DIR_WS_ADMIN', 'https://www.mybeautifullingerie.com/secure/admin/'); // absolute path required
define('DIR_FS_ADMIN', 'https://www.mybeautifullingerie.com/secure/admin/'); // absolute pate required
define('DIR_WS_CATALOG', 'http://www.mybeautifullingerie.com/'); // absolute path required
define('DIR_FS_CATALOG', '/home/virtual/site101/fst/var/www/html/'); // absolute path required

to these

  define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/secure/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/secure/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

I doubt I would EVER have worked that out. Massive thank you. It worked!

 

Now I'm gonna sit down and get my head round it if its the last thing I do. :D :thumbsup:

Archived

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

×
×
  • Create New...