avatarium Posted October 29, 2006 Posted October 29, 2006 I dont know where to start. i got a nice hosting package, with lots of gb of memory. Osc in a script thats installed alredy as a free script. I have printed out the doc for update 2.2 milestone 2 051112. the problems that I have are : 1. the backups dir I added to the catalog/admin and set perm to 777 still said missing dir. 2. created the cache dir and followed the dir and is says no such file 3. when I try to edit the index.php to change text it allways tells me error on line 13. I have made sure I left () ' " where they were and did no bother with anything else just text. If any1 can help I'll give you perm to get into cpanel and into the admin to see what you can do. I think this is just too much out of my league. I know i dont know what I'm doing wrong. email me at [email protected] thanks Ted
Jack_mcs Posted October 29, 2006 Posted October 29, 2006 For the first two problems, when you get the message that it doesn't exist, it will give you the patch to the file. Please copy and paste that here. For the third problem, paste your english/index.php file here (with the text in it that makes it fail). Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
avatarium Posted October 29, 2006 Author Posted October 29, 2006 For the first two problems, when you get the message that it doesn't exist, it will give you the patch to the file. Please copy and paste that here. For the third problem, paste your english/index.php file here (with the text in it that makes it fail). Jack I hope this is what you meant. Error: Backup directory does not exist. Please set this in configure.php. Backup Directory: /home/www/thedecoreshoppe.com/catalog/admin/backups Error: Cache directory does not exist. Please set this Configuration->Cache Cache Directory: home/www/thedecoreshoppe.com/OSCommerce/catalog/cache Use Cache true Cache Directory home/www/thedecoreshoppe.com/OSCommerce/catalog/cache I dont know what I did but it fixed the index.php and its working now. thanks
Jack_mcs Posted October 30, 2006 Posted October 30, 2006 Those are what I meant and they appear correct. Please post your admin/includes/configure.php file, minus the login data. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
avatarium Posted October 30, 2006 Author Posted October 30, 2006 Those are what I meant and they appear correct. Please post your admin/includes/configure.php file, minus the login data. Jack I hope this is what you wanted. thanks again for the help. <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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', 'http://toktu.sc43.info//OSCommerce'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://toktu.sc43.info//OSCommerce'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'toktu.sc43.info/'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', 'toktu.sc43.info/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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', 'supremecenter43.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?>
Jolanta Posted October 30, 2006 Posted October 30, 2006 Hi I think this should be... define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers or define('DB_SERVER', 'remotemysqlhost'); // eg, localhost - should not be empty for productive servers
Jack_mcs Posted October 30, 2006 Posted October 30, 2006 That's the wrong configure file but it should be changed anyway. Try this: define('HTTP_SERVER', 'http://toktu.sc43.info//OSCommerce'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://toktu.sc43.info'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.toktu.sc43.info'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/OSCommerce/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/OSCommerce/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/OSCommerce/catalog/'); Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
avatarium Posted October 30, 2006 Author Posted October 30, 2006 That's the wrong configure file but it should be changed anyway. Try this:define('HTTP_SERVER', 'http://toktu.sc43.info//OSCommerce'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://toktu.sc43.info'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.toktu.sc43.info'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/OSCommerce/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/OSCommerce/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/OSCommerce/catalog/'); Jack OK I think this is the right 1 <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ 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', 'http://toktu.sc43.info/OSCommerce/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', 'https://toktu.sc43.info/OSCommerce/'); define('ENABLE_SSL_CATALOG', 'false'); // 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', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/OSCommerce/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', 'supremecenter43.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'toktu_admin'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?>
Jack_mcs Posted October 31, 2006 Posted October 31, 2006 Same thing. Try changing this define('HTTP_SERVER', 'http://toktu.sc43.info/OSCommerce/'); // eg, http://localhost or - https://localhost should not be to this define('HTTP_SERVER', 'http://toktu.sc43.info'); // eg, http://localhost or - https://localhost should not be Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
ComicWisdom Posted October 31, 2006 Posted October 31, 2006 Same thing. Try changing thisdefine('HTTP_SERVER', 'http://toktu.sc43.info/OSCommerce/'); // eg, http://localhost or - https://localhost should not be to this define('HTTP_SERVER', 'http://toktu.sc43.info'); // eg, http://localhost or - https://localhost should not be Jack Hey Jack, Did we try the obvious here and make sure that he has setup the directories exactly where they belong and spelled them correctly? On one of my sites I once had a horrible time getting my backup to work because I made a directory called /backup instead of /backups??? Why can't computers understand what you mean instead of what you say? They're supposed to be the smart ones! And you have no idea how long it took me to fix that stupd little error!! :blush: Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
Gameprodigy Posted October 31, 2006 Posted October 31, 2006 not to step in but on the second error for the index page, if you changed any of the screen text which I have found out the hard way if you added any words such as can't don't won't anything that has an apstrophe you will get an error. If you add any words that contain ' you have to change them like this don\'t, won\'t, can\'t I remember spending about 7 hours when I personalized the index page and kept adding words with apostrophe's trying to figure out where I went wrong.
Jack_mcs Posted October 31, 2006 Posted October 31, 2006 Hey Jack, Did we try the obvious here and make sure that he has setup the directories exactly where they belong and spelled them correctly? On one of my sites I once had a horrible time getting my backup to work because I made a directory called /backup instead of /backups??? Why can't computers understand what you mean instead of what you say? They're supposed to be the smart ones! And you have no idea how long it took me to fix that stupd little error!! :blush: Good point. It's always best to check the obvious first. :) Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
avatarium Posted November 1, 2006 Author Posted November 1, 2006 Hey Jack, Did we try the obvious here and make sure that he has setup the directories exactly where they belong and spelled them correctly? On one of my sites I once had a horrible time getting my backup to work because I made a directory called /backup instead of /backups??? Why can't computers understand what you mean instead of what you say? They're supposed to be the smart ones! And you have no idea how long it took me to fix that stupd little error!! :blush: Well, I've done all of that and now i get this. Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/thedecoreshoppe.com/OSCommerce/catalog/includes/functions/database.php on line 19 Unable to connect to database server! I dont know. can 1 of you guys help me. I do thank you both for your help but this is getting me down.
Gameprodigy Posted November 1, 2006 Posted November 1, 2006 I would check this section of the includes/functions/database.php define('DB_SERVER', 'supremecenter43.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'toktu_admin'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); Make sure the username / password are correct, I also noticed a difference between yours and mine, the USE_Pconnect says 'true' on mine don't know if that makes a difference. Also my STORE SESSIONS is says 'mysql' in it. It could be something you can try, its reversable to go back in and take out what you added/changed.
Gameprodigy Posted November 1, 2006 Posted November 1, 2006 also this section in mine define('DB_SERVER', 'supremecenter43.com'); says define('DB_SERVER', 'localhost');
Nick_Q Posted November 2, 2006 Posted November 2, 2006 also this section in mine define('DB_SERVER', 'supremecenter43.com'); says define('DB_SERVER', 'localhost'); Hi All, Not sure if this is a similar issue... so please forgive me if it does not help... I have a local Develpment site (running on XP with Xampp Server environment) which runs currently runs fine and performs as would expect. I also have a web site which is running on an original install which also performs OK with the version it is running. The issue comes when attempting to update the Web site with what is running on the local site.... In order to make it simple :-" i renamed my remote catalog and uploaded the local one being careful to amend the catalog/admin/includes/configue.php to reflect the remote database references (database name, user and password) at this point i thought i had changed all i needed to make my local catalog work online... :blush: I have obviously missed something and spent the best part of my day looking for it!! What have i missed... I get the following error message: Warning: mysql_pconnect(): Access denied for user: 'local_admin@localhost' (Using password: YES) in /data01/nhcadmin/public_html/catalog/includes/functions/database.php on line 17 Unable to connect to database server! local_admin is NOT the user for the online system....so i know i missed something. :( If anyone could shed some light I would be very grateful and sleep tonight!!
Nick_Q Posted November 2, 2006 Posted November 2, 2006 Hi All, Not sure if this is a similar issue... so please forgive me if it does not help... I have a local Develpment site (running on XP with Xampp Server environment) which runs currently runs fine and performs as would expect. I also have a web site which is running on an original install which also performs OK with the version it is running. The issue comes when attempting to update the Web site with what is running on the local site.... In order to make it simple :-" i renamed my remote catalog and uploaded the local one being careful to amend the catalog/admin/includes/configue.php to reflect the remote database references (database name, user and password) at this point i thought i had changed all i needed to make my local catalog work online... :blush: I have obviously missed something and spent the best part of my day looking for it!! What have i missed... I get the following error message: Warning: mysql_pconnect(): Access denied for user: 'local_admin@localhost' (Using password: YES) in /data01/nhcadmin/public_html/catalog/includes/functions/database.php on line 17 Unable to connect to database server! local_admin is NOT the user for the online system....so i know i missed something. :( If anyone could shed some light I would be very grateful and sleep tonight!! OK now I can sleep :thumbsup: there are (of course?) TWO configure.php files and now having modified BOTH of them away we go... (sometimes learning is a slow process... :rolleyes:
avatarium Posted November 9, 2006 Author Posted November 9, 2006 OK now I can sleep :thumbsup: there are (of course?) TWO configure.php files and now having modified BOTH of them away we go... (sometimes learning is a slow process... :rolleyes: Thanks for all your help in osc support. but i still dont seem to be able to get the cache or backups to work. Here is all the info. Cache directory does not exist. Please set this Configuration->Cache. Use Cache true Cache Directory home/www/thedecoreshoppe.com/OSCommerce/catalog/cache file manager cataloge/cache(dir) <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ 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', 'http://toktu.sc43.info/OSCommerce/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', 'https://toktu.sc43.info/OSCommerce/'); define('ENABLE_SSL_CATALOG', 'false'); // 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', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/OSCommerce/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', 'supremecenter43.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> supremecenter43.com is db server name Error: Backup directory does not exist. Please set this in configure.php. Backup Directory: /home/www/thedecoreshoppe.com/catalog/admin/backups/ file manager admin/backups(dir) permission 777 <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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', 'http://toktu.sc43.info//OSCommerce'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://toktu.sc43.info//OSCommerce'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'toktu.sc43.info/'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', 'toktu.sc43.info/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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', 'supremecenter43.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I have checked my spelling in text on index.php and do not use contractions. don't won't ecx so now i'm stumped. I had changed things as you had said in the threads to my posts but they really made my site quite working. as they are now everything works fine but the cache and backups from the admin controle panel. thanks ted
Recommended Posts
Archived
This topic is now archived and is closed to further replies.