Guest Posted August 25, 2005 Share Posted August 25, 2005 Hello, I get the following error: Backup directory does not exist. Please set this in configure.php. I have read many of other peoples problems with this and tried to follow others who helped them but with no success. Below is my Https config file and Admin config file. Also I do have a folder created in Admin called Backups and set to 777. Thanks for the support in advance! HTTPS CONFIG FILE: <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk define('HTTP_SERVER', 'http://www.moanagifts.com'); define('HTTPS_SERVER', 'https://www.moanagifts.com'); define('ENABLE_SSL', 'true'); define('HTTP_COOKIE_DOMAIN', 'moanagifts.com'); define('HTTPS_COOKIE_DOMAIN', 'www.moanagifts.com'); define('HTTP_COOKIE_PATH', '/'); define('DIR_WS_HTTP_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', 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('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> ADMIN CONFIG FILE: <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk define('HTTP_SERVER', 'https://www.moanagifts.com'); define('HTTP_CATALOG_SERVER', 'http://www.moanagifts.com'); define('HTTPS_CATALOG_SERVER', 'https://www.moanagifts.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/admin'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/'); 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/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); Link to comment Share on other sites More sharing options...
jsruok Posted August 25, 2005 Share Posted August 25, 2005 Part of your config was: define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/'); I'm not sure if it makes any difference, but you could try removing the preceding slash, so that the clause becomes: define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2005 Share Posted August 25, 2005 Part of your config was:I'm not sure if it makes any difference, but you could try removing the preceding slash, so that the clause becomes: define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); <{POST_SNAPBACK}> I tried that previously and it didn't work. Link to comment Share on other sites More sharing options...
jsruok Posted August 26, 2005 Share Posted August 26, 2005 so, if you echo DIR_FS_BACKUP; you get like /usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/admin/backups/ and when you copy that location (removing the trailing slash) into terminal and you ls -l <location_here> then you get something like drwxrwxrwx 2 user user 4096 Aug 25 20:50 backups Is this correct? Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 You should need to just make a folder inside your admin folder and call it backups the configuration is all set up already to work with it. Maybe you need to have it a lower case b and not a Capital? Not sure if it makes a difference but if you can't figure anything else out its worth a shot. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Wendy, If you look at my config files I posted you will see it is in lower case. You should need to just make a folder inside your admin folder and call it backups the configuration is all set up already to work with it. Maybe you need to have it a lower case b and not a Capital? Not sure if it makes a difference but if you can't figure anything else out its worth a shot. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 Wendy, If you look at my config files I posted you will see it is in lower case. <{POST_SNAPBACK}> Yup, I saw that but when you were talking about the problem you capitalized the word. :) Just figured maybe that was the way you made the folder. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 You lost me with everything you are saying after backups/ . so, if you echo DIR_FS_BACKUP; you get like /usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/admin/backups/ and when you copy that location (removing the trailing slash) into terminal and you ls -l <location_here> then you get something like drwxrwxrwx 2 user user 4096 Aug 25 20:50 backups Is this correct? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
jsruok Posted August 26, 2005 Share Posted August 26, 2005 You lost me with everything you are saying after backups/ . <{POST_SNAPBACK}> Ah.. Sorry about that. You're using Windows? Link to comment Share on other sites More sharing options...
jsruok Posted August 26, 2005 Share Posted August 26, 2005 Yup, I saw that but when you were talking about the problem you capitalized the word. :) Just figured maybe that was the way you made the folder. <{POST_SNAPBACK}> Indeed. I was like "That's it! How come Wendy saw that and I didnt'.." Link to comment Share on other sites More sharing options...
jsruok Posted August 26, 2005 Share Posted August 26, 2005 Forget that Windows reference, I wasn't thinking at all. You lost me with everything you are saying after backups/ . <{POST_SNAPBACK}> Ah.. Sorry about that. If you enter, say echo DIR_FS_BACKUP; exit(0); at the end of your config file, what do you see? Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 I get the following: Parse error: parse error, unexpected ';' in /usr/local/psa/home/vhosts/moanagifts.com/httpsdocs/admin/includes/configure.php on line 26 Forget that Windows reference, I wasn't thinking at all.Ah.. Sorry about that. If you enter, say echo DIR_FS_BACKUP; exit(0); at the end of your config file, what do you see? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 I corrected the parse error and now I get a blank page. I get the following:Parse error: parse error, unexpected ';' in /usr/local/psa/home/vhosts/moanagifts.com/httpsdocs/admin/includes/configure.php on line 26 <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
jsruok Posted August 26, 2005 Share Posted August 26, 2005 I get the following:Parse error: parse error, unexpected ';' in /usr/local/psa/home/vhosts/moanagifts.com/httpsdocs/admin/includes/configure.php on line 26 <{POST_SNAPBACK}> What's on line 26? The code I gave you works for me and if your config file is ok, then you shouldn't be getting any parse errors. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Corrected the parse error and get a blank page. What's on line 26? The code I gave you works for me and if your config file is ok, then you shouldn't be getting any parse errors. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 I know this was mentioned before, but on my admin configure.php my backups is listed like define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); not define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/'); and this line define('DIR_FS_ADMIN', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/admin'); in mine is like define('DIR_FS_ADMIN', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/admin/'); Guess it wouldn't make any difference. Maybe? Not sure. lol But it will mess up other folders, atleast that line should make other areas not work correctly. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
jsruok Posted August 26, 2005 Share Posted August 26, 2005 Corrected the parse error and get a blank page. <{POST_SNAPBACK}> Sweet. You should be getting the directory name. You'll have to check out where the definition fails. (Just a thought: If you didn' copy-paste the code, are you 100% sure you typed it correctly. It doesnt' say DIR_FS_BACKUPS or DIR_WS_BACKUP or DIR_FS_BAKCUP or anything?) Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 If I did taht then my directory will look like this Backup Directory: /usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/adminbackups/. Notice the / is missing between admin & backups. I know this was mentioned before, but on my admin configure.php my backups is listed like define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); not define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/'); with the extra / it will never find the folder. Even if you tried it and it didn't work you should change it. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Yes, I copied and pasted. Can you elaborate on "check out where the definition fails". Was it suppose to go blank? Sweet. You should be getting the directory name. You'll have to check out where the definition fails. (Just a thought: If you didn' copy-paste the code, are you 100% sure you typed it correctly. It doesnt' say DIR_FS_BACKUPS or DIR_WS_BACKUP or DIR_FS_BAKCUP or anything?) <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 Now that I am looking at my file compaired to yours, I found another difference. May not effect anything though. In this line define('DIR_FS_DOCUMENT_ROOT', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs'); mine has a / at the end. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 If I did taht then my directory will look like this Backup Directory: /usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs/adminbackups/. Notice the / is missing between admin & backups. <{POST_SNAPBACK}> Hense tha fact you need to change the other line as well. :) Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 No help by adding / to the end of doc root. Also this is how I made the following look per your request define('DIR_FS_BACKUP', exit(0) ); I got a blank page. Now that I am looking at my file compaired to yours, I found another difference. May not effect anything though. In this line define('DIR_FS_DOCUMENT_ROOT', '/usr/local/psa/home/vhosts/www.moanagifts.com/httpsdocs'); mine has a / at the end. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 Have you tried making all of the changes at the same time as far as the / is concerned? Just changing one is not going to do anything. Changing them all may not either but one definately will not. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Yes, I tried changing the repostioning the / and still no dice for admin config. Have you tried making all of the changes at the same time as far as the / is concerned? Just changing one is not going to do anything. Changing them all may not either but one definately will not. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
moordi Posted January 17, 2007 Share Posted January 17, 2007 make the directory backup and not backups under admin (set it to writable) and change the name also in the cofigure.php (admin/includes) to backup Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.