Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Backup directory does not exist


tbsg

Recommended Posts

Posted

i've searched through old posts about this error and they all say to check my admin/includes/configure.php file to make sure it's set correctly. well, i've done that and have tried just about every combination i can think of to get this working and no luck.

 

here's my configure.php file:

 

	define('HTTP_SERVER', 'https://visioncanadaltd.com');
define('HTTP_CATALOG_SERVER', 'http://visioncanadaltd.com');
define('HTTPS_CATALOG_SERVER', 'https://visioncanadaltd.com');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/visioncanadaltd.com/httpdocs');
define('DIR_WS_ADMIN', '/./admin/');
define('DIR_FS_ADMIN', '/var/www/vhosts/visioncanadaltd.com/httpsdocs/./admin');
define('DIR_WS_CATALOG', '/./');
define('DIR_FS_CATALOG', '/var/www/vhosts/visioncanadaltd.com/httpdocs/./');
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/');

 

this is the directory that the code generates:

 

Backup Directory: /var/www/vhosts/visioncanadaltd.com/httpsdocs/./admin/backups/

 

this is the only directory that's still giving me problems but i can't seem to get it to cooperate. any ideas?

Posted

I think that unless you have a directory named '.' this line of code and the path it is trying to find, is incorrect.

 

define('DIR_WS_ADMIN', '/./admin/');

 

I'm no expert, but I think you need to lose /. so it reads:

 

define('DIR_WS_ADMIN', '/admin/');

 

Also, by looking at my configure.php, on the last line of code:

 

 define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/');

 

In mine, there is only a / at the end, so 'backups/' That doesn't appear to affecting the path but worth a check.

 

BTW - Obviously you have created a 'backups' directory. Yes?

Posted

yes, that seemed like the thing to do to me too. i tried it and no change which doesn't make sense to me.

 

i've verified that the backups directory exists and changed the permissions to 777.

 

very confusing.

Posted

Ok, two more things I noticed.

 

1, There are three instances where you have /./ I suggest copying the file, just in case, and removing /. from each of them.

 

2, Do you have the httpsdocs directory, where you have put the admin directory, within the root?

Posted

i noticed that but have been hesitant to remove all of them in case it impacts other areas of the store or the admin. i'll cross my fingers and give it a go.

Posted

You have SSL? Do you have two directories named httpdocs and httpsdocs?

 

I noticed that your HTTP_SERVER is defined for https://

 

I haven't installed SSL so I don't know if that is correct but it doesn't seem right.

Posted

yes, i have ssl but all files are being served from the httpdocs folder. i needed to do that to get the admin section working properly - the client was having trouble adding content when i had the shop in httpdocs and the admin in httpsdocs

 

I noticed that your HTTP_SERVER is defined for https://[\] i'm not sure if i can alter this or it needs to stay that way because the files are served from one folder
Posted

i've changed the http_server code and still no luck. this is what my code looks like now.

 

	define('HTTP_SERVER', 'http://visioncanadaltd.com');
define('HTTP_CATALOG_SERVER', 'http://visioncanadaltd.com');
define('HTTPS_CATALOG_SERVER', 'https://visioncanadaltd.com');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/visioncanadaltd.com/httpdocs');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/var/www/vhosts/visioncanadaltd.com/httpsdocs/admin');
define('DIR_WS_CATALOG', '/./');
define('DIR_FS_CATALOG', '/var/www/vhosts/visioncanadaltd.com/httpdocs/./');
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/');

 

does anyone else have any suggestions? this site is going to go live soon and i'd really like to be able to provide the client with the backup.

Posted

I don't know why you ignore advice and insist upon putting extra slashes in your files, but that's the cause of your problem:

 

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/visioncanadaltd.com/httpdocs');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/var/www/vhosts/visioncanadaltd.com/httpsdocs/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', '/var/www/vhosts/visioncanadaltd.com/httpdocs/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Vger

Posted

vger, tried that and now i get this error - same as before but now there's no slash between admin and backups:

 

Backup Directory: /var/www/vhosts/visioncanadaltd.com/httpsdocs/adminbackups/

 

tried putting the slash back in front of backups/ but still get an error message.

Posted

finally able to resolve this. it was connected to the http & https files being served from 1 folder

 

changed the line setting the backup directory to this and all is well.

 

	define('DIR_FS_BACKUP', '/var/www/vhosts/visioncanadaltd.com/httpdocs/admin/backups/');

Archived

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

×
×
  • Create New...