GsmCorner Posted December 14, 2003 Share Posted December 14, 2003 hi all, when i go to backup database it says this Error: Backup directory does not exist. Please set this in configure.php. now i've found the configure.php file, but im not sure what to do to the file ? please help Regards Tom Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2003 Share Posted December 14, 2003 it is in the /admin/includes/configure.php near the bottom, next i would go to the server error log and see what file it is trying to access, and also look at the access log, a log goes on in there when trying to troubleshoot files and where things are being pointed to. Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2003 Share Posted December 14, 2003 Did you create the dir /admin/backups and set the permissions to 777 The_Bear Link to comment Share on other sites More sharing options...
GsmCorner Posted December 14, 2003 Author Share Posted December 14, 2003 Did you create the dir /admin/backups and set the permissions to 777 The_Bear now that worked perfect ! nice 1 thanks alot.. Cheers Tom Link to comment Share on other sites More sharing options...
GsmCorner Posted December 14, 2003 Author Share Posted December 14, 2003 ahh wait i just tried to back it up but i get this error Warning: fopen(/var/www/html/shop/admin/backups/db_gsmcorner_co_uk_-_osc-20031214220116.sql.zip): failed to open stream: No such file or directory in /var/www/html/shop/admin/backup.php on line 131 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/shop/admin/backup.php:131) in /var/www/html/shop/admin/includes/functions/general.php on line 18 any idea what i am meant to do ? thanks tom Link to comment Share on other sites More sharing options...
GsmCorner Posted December 14, 2003 Author Share Posted December 14, 2003 hi all, it backs up fine when i do it as GZIP. but when i tick ZIP, it comes up with the error: Warning: fopen(/var/www/html/shop/admin/backups/db_gsmcorner_co_uk_-_osc-20031214220116.sql.zip): failed to open stream: No such file or directory in /var/www/html/shop/admin/backup.php on line 131 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/shop/admin/backup.php:131) in /var/www/html/shop/admin/includes/functions/general.php on line 18 any idea what i should do ? thanks all Tom Link to comment Share on other sites More sharing options...
chfields Posted December 14, 2003 Share Posted December 14, 2003 go to shop/admin/backup.php and at the end of the file place your cursor next to the last ?> hit delete and save. Also be sure the backup folder is chmodded to 777 Link to comment Share on other sites More sharing options...
GsmCorner Posted December 14, 2003 Author Share Posted December 14, 2003 go to shop/admin/backup.php and at the end of the file place your cursor next to the last ?> hit delete and save. Also be sure the backup folder is chmodded to 777 hi mate, i dont really understand what u mean, sorry, i've found the backup.php... what am i meant to do to it ? and yes just checked the backup folder is chmodded to 777.. thanks for your help Tom Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2003 Share Posted December 15, 2003 Ditto, the last "?>" should be deleted? <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Is that what you meant? Link to comment Share on other sites More sharing options...
chfields Posted December 15, 2003 Share Posted December 15, 2003 NO! Put your cursor NEXT to it and hit delete to get rid of the white space Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2003 Share Posted December 15, 2003 :) he heh, that was quick. So now we have: <?php require(DIR_WS_INCLUDES . 'application_bottom.php');?> didn't know white space made any difference after a semicolon, or have I got the wrong end of the stick? either way, I still get the error message: Error: Backup directory does not exist. Please set this in configure.php. Any other ideas? Link to comment Share on other sites More sharing options...
GsmCorner Posted December 15, 2003 Author Share Posted December 15, 2003 hello, this is where im up to i did the thing that The_Bear asked: Did you create the dir /admin/backups and set the permissions to 777 The_Bear ^^^ so i made the folder and that ^^^ -- now that worked, i can now back my stuff up, saying it as .GZIP -- but when i go to back up as .ZIP it comes up with an error: Warning: fopen(/var/www/html/shop/admin/backups/db_gsmcorner_co_uk_-_osc-20031214220116.sql.zip): failed to open stream: No such file or directory in /var/www/html/shop/admin/backup.php on line 131 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/shop/admin/backup.php:131) in /var/www/html/shop/admin/includes/functions/general.php on line 18 -- now im not sure why it comes up with this error... chfields: go to shop/admin/backup.php and at the end of the file place your cursor next to the last ?> hit delete and save. Also be sure the backup folder is chmodded to 777 im not too sure what im meant to do here, 'place my cursor to the last' ? the backup folder is chmodded to 777. Tom Link to comment Share on other sites More sharing options...
Guest Posted December 15, 2003 Share Posted December 15, 2003 I had an error in a path in configure.php. It was highlighted in "define languages" from the left column. Now everything works OK. I'm not sute if that will help you Tom but it's probably worth re-checking. Link to comment Share on other sites More sharing options...
GsmCorner Posted December 15, 2003 Author Share Posted December 15, 2003 hello, just checked and i dont think i can see any errors in the configure.php ill just have to save it as .GZIP as ill still be able to unzip it... cheers tom p.s say if i moved my online shop to a new hosting company, whats the best way and would it be hard ? Link to comment Share on other sites More sharing options...
chfields Posted December 15, 2003 Share Posted December 15, 2003 You can download the database by choosing no compression and download only, that way when you move your site you can restore from the downloaded database Link to comment Share on other sites More sharing options...
GsmCorner Posted December 15, 2003 Author Share Posted December 15, 2003 hi mate, yep just done that, works fine....thanks do u have any info on how to move your site to a new hosting company ? as i dont know how to even install a online shop lol....i payed someone to set mine up. so if theres any info out there, that would be great. just need to know what i would need to do and how hard it would be. thanks again Tom Link to comment Share on other sites More sharing options...
chfields Posted December 15, 2003 Share Posted December 15, 2003 All you need to do is upload all your files and then change the 2 config files to the new url's, restore your database and your in business Link to comment Share on other sites More sharing options...
GsmCorner Posted December 15, 2003 Author Share Posted December 15, 2003 hello, that sounds quite easy, shouldn't be a problem.... thanks again for your help Tom Link to comment Share on other sites More sharing options...
spectr17 Posted December 27, 2003 Share Posted December 27, 2003 I'm getting the same error when trying to do a backup. Error: Backup directory does not exist. Please set this in configure.php. I have a backups directory at catalog>admin>backups that is CHMOD 777. I've tried all kinds of paths and no luck. Thanks for any help. My admin configure file is <?php /* 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', 'xxxxxxx); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'xxxxxxx); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_FS_DOCUMENT_ROOT', '/home/xxxxxxx/public_html/osCommerce/'); // where the pages are located on the server define('HTTP_COOKIE_DOMAIN', 'xxxxxxx); define('HTTPS_COOKIE_DOMAIN', 'xxxxxxx); define('HTTP_COOKIE_PATH', '/osCommerce/'); define('HTTPS_COOKIE_PATH', '/osCommerce/'); define('DIR_WS_HTTP_CATALOG', '/osCommerce/'); define('DIR_WS_HTTPS_CATALOG', '/osCommerce/'); define('DIR_WS_CATALOG', '/osCommerce/'); // absolute path required define('DIR_WS_ADMIN', '/osCommerce/admin/'); define('DIR_FS_ADMIN', '/osCommerce/admin/'); // absolute path required 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_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/xxxxxxx/public_html/osCommerce/'); // absolute path required define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_ADMIN_BACKUPS', DIR_FS_CATALOG . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxxxx'); define('DB_SERVER_PASSWORD', 'default'); define('DB_DATABASE', 'xxxxxxx); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> ~spectr17 Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2003 Share Posted December 27, 2003 define('DIR_FS_ADMIN','/home/xxxxxxx/public_html/osCommerce/admin/'); Matti Link to comment Share on other sites More sharing options...
spectr17 Posted December 27, 2003 Share Posted December 27, 2003 Thanks a ton Johnson. ;) I was going blind trying every combo I could think of. :blink: ~spectr17 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.