FXCustumz Posted January 10, 2005 Posted January 10, 2005 I was trying to figure out how to back up my site when I noticed this error Error: Backup directory does not exist. Please set this in configure.php. How do I fix this and then backup my site before I get too far into it? Thanks in advanced billy
Guest Posted January 10, 2005 Posted January 10, 2005 You actually have to create a folder name "backups" for this feature to work. :thumbsup:
FXCustumz Posted January 10, 2005 Author Posted January 10, 2005 You actually have to create a folder name "backups" for this feature to work. :thumbsup: <{POST_SNAPBACK}> Where do I make this folder? And does the system automatically know where it is and if not then how do I point it to it? I am very new at this and am learning a lot of stuff in a short amount of time. Thanks a lot, Billy
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 I was reading another thread about how to move a database and there was information on how to create a database. It says to create a folder name "backups" in catalog/admin. Well I dont have a catalog/admin. I have a catalog and a admin but not in that way. They are seperate folders. I also have a backup.php in the admin folder. So I am really needing some cliff notes on the way to do this....I feel so stupid with this stuff. Thanks a lot, billy
Guest Posted January 11, 2005 Posted January 11, 2005 The folder name "backups" that you need to create will go inside the admin folder (in the same level as backup.php). This will allow you to make a back up of your database in a .sql file using Admin panel|Tools|Database backup. There are essentially 2 types of backup in osCommerce. One is database backup and the other is files backup. After you have backup your database, you just have to backup all files in your server. (the .sql database backup file is already in there)
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 The folder name "backups" that you need to create will go inside the admin folder (in the same level as backup.php). This will allow you to make a back up of your database in a .sql file using Admin panel|Tools|Database backup. <{POST_SNAPBACK}> I made the folder named backups.sql. However, I go to database backup and I still get this message on the top of the screen: Error: Backup directory does not exist. Please set this in configure.php. I am probably doing something wrong. But just cant seem to put my finger on it. Thanks Alpha Ray, Billy
bobg7 Posted January 11, 2005 Posted January 11, 2005 I made the folder named backups.sql. However, I go to database backup and I still get this message on the top of the screen: Error: Backup directory does not exist. Please set this in configure.php. I am probably doing something wrong. But just cant seem to put my finger on it. Thanks Alpha Ray, Billy <{POST_SNAPBACK}> The folder name should be backups not backup.sql and should be in the admin folder. Also the permissions should be set to 755 Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 Database Backup Manager Title Date Size Action Backup Directory: /xxxxx/xxxx/xxxx/xxxxx/fxcustumz.com//admin/backup/ This is what is says in the window under tools/database backup I does not give me something to do. There is no way to do any backups. I know there is something missing or configured wrong. I just cant put my finger on it.
Guest Posted January 11, 2005 Posted January 11, 2005 Backup Directory: /xxxxx/xxxx/xxxx/xxxxx/fxcustumz.com//admin/backup/ There should be only 1 slash before admin not 2 slashes (//). The problem might be in your configure.php (there are 2 of them).
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 There should be only 1 slash before admin not 2 slashes (//). The problem might be in your configure.php (there are 2 of them). <{POST_SNAPBACK}> Please bare with me. I am very new to this. I can not see where there are 2 (//) in my configure.php. however I have noticed that there are a couple of different configure.php One in /fxcustumz.com/admin/includes/configure and on in /fxcustumz.com/catalog/includes/configure I also found a backup in /fxcustumz.com/admin/backup along with the new backups folder I created there. And there is a backup here /fxcustumz.com/admin/includes/languages/english/backup So I am very confused now. LOL @ the Newbie..... Thanks again, billy
Guest Posted January 11, 2005 Posted January 11, 2005 You need to create "backups" folder in your admin folder not "backup" (don't forget the "s" at the end. Yes there are 2 configure.php in osCommerce, 1 is for your Admin section and the Other is for your Catalog section.
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 You need to create "backups" folder in your admin folder not "backup" (don't forget the "s" at the end. Roger that. I did create the folder in my admin. However, I can not find how to get rid of the (//) like you said before.
Guest Posted January 11, 2005 Posted January 11, 2005 most likely your document root has a / at the end of it in your configure.php you can post your configure.php file here without the database info and we can help you correct it
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 most likely your document root has a / at the end of it in your configure.phpyou can post your configure.php file here without the database info and we can help you correct it <{POST_SNAPBACK}> This is my /admin/includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL 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', $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', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?>
Guest Posted January 11, 2005 Posted January 11, 2005 without these filled in you will get nothing. they are your domain, or ssl domain http://www.domain.com https://www.domain.com
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 without these filled in you will get nothing. they are your domain, or ssl domain http://www.domain.com https://www.domain.com <{POST_SNAPBACK}> So I need to change these things before anything will work? define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', '');
Guest Posted January 11, 2005 Posted January 11, 2005 By the way in the future you should not post the database section of your configure.php // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> The above is ok. But if your site is live, then exposing your username/password to the world is not a good idea. :thumbsup:
Guest Posted January 11, 2005 Posted January 11, 2005 that was the reason for me posting this prior to him posting: you can post your configure.php file here without the database info and we can help you correct it
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 I did not realize that that was anything that could be used. It does not look like any passwords I created for the access. I am still lost on this whole thing. I tried to change those settings on the define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); And it brings up an error. So I changed it back to what it used to be. This stuff is so confusing. I am just trying to make sure that I can create a back up before I start doing to many updates and or loading of merchandise. Thanks,
Guest Posted January 11, 2005 Posted January 11, 2005 Your admin's configure.php is half empty, your catalog's configure.php might be suffering the same fate. Ok you have a choice of configuring the 2 configure.php by: 1. Doing it manually, (Probably will take a lot of time to get it right) Or 2. Use my Low Tech Solution. (In your case don't overwrite the existing database, just create a different database).
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 that was the reason for me posting this prior to him posting: you can post your configure.php file here without the database info and we can help you correct it <{POST_SNAPBACK}> Is there any way to get ahold of a moderator and have them delete the info?
Guest Posted January 11, 2005 Posted January 11, 2005 that is a long drawn out process to do so. the only things we need to manually create the settings for the configure.php is your domain name and document root. you can find your document root from your file manager in your control panel. if you are in the store admin then go to tools/file manager and it it is displayed there or you can go to server info and search for document root with your current configure.php file then post that info here
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 that is a long drawn out process to do so. the only things we need to manually create the settings for the configure.php is your domain name and document root.you can find your document root from your file manager in your control panel. if you are in the store admin then go to tools/file manager and it it is displayed there or you can go to server info and search for document root with your current configure.php file then post that info here <{POST_SNAPBACK}> Is the document root directly under the File Manager title under Admin, Tools, File Manager? For example File Manager /xxxxxxx/xxxx/xxxxx/xxxxxxx/fxcustumz.com/ Or do I need to search for it somehow? Thanks,
Guest Posted January 11, 2005 Posted January 11, 2005 that is it, usually without the trailing / you can find it (the one the host assigned) by clicking on tools, server info and then search for document_root it will give you the one that php uses
FXCustumz Posted January 11, 2005 Author Posted January 11, 2005 It is the same as the info I just posted. I looked under the server info and did a find on this page with the (document_root) as my criteria. And I found the information I said before /xxxxxxx/xxxx/xxxxx/xxxxxxx/fxcustumz.com/ Can I post the whole information without anyone being able to use it to harm me? I need to make sure now that I have messed up once. Thanks,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.