CoreSports Posted July 5, 2010 Posted July 5, 2010 Hey guys, First of all I just want to say I've been following this forum for a couple weeks now and just decided to register today. I am currently working as an intern for a sporting goods store and they would like me to help fix their site up and make it look more professional. They hired a company to provide a template a while ago, but I would like to spice things up a bit. Unfortunately, my expertise is in marketing and my technical skills are very limited. I'm very new to web design, but I learn things very quickly. I just downloaded FileZilla today and NotePad++ and I was able to download files to my home computer. I would like to start editing files and learning PHP, but I don't want to touch anything without backing up the database. When I go to admin>tools>database backup I get this error: "Error: Backup directory does not exist. Please set this in configure.php." I read a few threads regarding the same error message, but I could not come up with a solution. I am afraid to change files without knowing what I'm doing, but I'd like to have this issue solved so atleast I have my backup to fall on if I make a mistake. Here is my configure.php file: <?php define('HTTP_SERVER', 'http://www.coresportshamilton.com'); define('HTTP_CATALOG_SERVER', 'http://www.coresportshamilton.com'); define('HTTPS_CATALOG_SERVER', 'http://www.coresportshamilton.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/coresportshamilton.com/httpdocs/shop/'); define('DIR_WS_ADMIN', '/shop/admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/coresportshamilton.com/httpdocs/shop/admin/'); define('DIR_WS_CATALOG', '/shop/'); define('DIR_FS_CATALOG', '/var/www/vhosts/coresportshamilton.com/httpdocs/shop/'); 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('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'nobodiesbusiness'); define('DB_SERVER_PASSWORD', 'nevermind'); define('DB_DATABASE', 'nameofmydatabse'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> I don't even know where to start so all help is greatly appreciated. Thanks :) Arya
chadcloman Posted July 5, 2010 Posted July 5, 2010 Arya, as a general safeguard, don't ever post the part of your configure.php file that contains the database login (the constants that start with "DB_"). This could allow someone to log in to your database and do whatever they want with it. In regards to the "backups" directory, you may need to create it manually. It goes in shop/admin. First see if one is there. If not create the directory and set the permissions to 755. If osCommerce complains about it not being writable, then change the permissions to 777, perform the backup, and change the permissions back to 755. You may find it easier to back up your database and files from the control panel of your web host. Check out Chad's News.
CoreSports Posted July 5, 2010 Author Posted July 5, 2010 Thanks a lot that really helped! And I don't know how to edit my previous post..? can someone edit it for me or tell me how
chadcloman Posted July 5, 2010 Posted July 5, 2010 I reported it to the moderators. You can ask them as well. Check out Chad's News.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.