Guest Posted April 19, 2004 Posted April 19, 2004 I had to upload my 'configure' file again. What I have overlooked is I have to input the settings again. I have managed to define the database connection but when I open the page in the browser it looks like This. Please tell me what I need to do. Cheers :(
Adyx Posted April 19, 2004 Posted April 19, 2004 Chances are that you only re-uploaded your catalog/includes/configure.php file ? If so, take a look at the admin/includes/configure.php file for some of your missing info. It's a different configuration, but many of the relevant paths will be in there.. ;)
Guest Posted April 19, 2004 Posted April 19, 2004 Hi Mark, yes it was the catalog/includes/configure.php file that I uploaded. Still cant seem to get it to work. This is the code, can you see from this if I have not added anything?? <?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', ''); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_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'); // 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' ?>
Guest Posted April 19, 2004 Posted April 19, 2004 You need to fill in this info: define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', ''); Matti
detsouvalas Posted April 19, 2004 Posted April 19, 2004 define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers Well, if you do not define the address of your web-server, you cant expect your shop to function ... !! :blink: Antonios
♥Vger Posted April 19, 2004 Posted April 19, 2004 Also advisable to change this define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' to this define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Vger
Guest Posted April 19, 2004 Posted April 19, 2004 I have now input more details. I am still seeing my page like thisMy Webpage Does my coding look right?? :blink: <?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://www.4printing.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.4printing.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_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', '/homepages/46/d86206271/htdocs/john/mark/4printing/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
241 Posted April 19, 2004 Posted April 19, 2004 change to this either set the SSL to false or if you are using SSL set the paths for the SSL parts server, cookies, catalog define('ENABLE_SSL', false); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Guest Posted April 19, 2004 Posted April 19, 2004 Biiiiiiiiiiiiiig thankyou Steve, that has done the job, very much appreciated. Thanks also to the all the others!! :D
♥Vger Posted April 19, 2004 Posted April 19, 2004 Just taken a quick look at your site, and apart from two things it now seems to be functioning. First thing, your footer info is appearing in your right column - don't know if that's deliberate or not (but it doesn't look good). Secondly your configure.php file is not chmod'ed to 400 (it's probably set to 644), which is why you're getting the error at the top of the page. Hope this helps - Vger
detsouvalas Posted April 19, 2004 Posted April 19, 2004 define('HTTP_COOKIE_PATH', '');define('DIR_WS_HTTP_CATALOG', ''); Try setting your cookies path to /catalog (don't forget the slash!) and your http catalog path to /catalog/ (don't forget the slashes!) Antonios
Guest Posted April 19, 2004 Posted April 19, 2004 Just taken a quick look at your site, and apart from two things it now seems to be functioning. First thing, your footer info is appearing in your right column - don't know if that's deliberate or not (but it doesn't look good). Secondly your configure.php file is not chmod'ed to 400 (it's probably set to 644), which is why you're getting the error at the top of the page. Hope this helps - Vger You mentioned the footer info appearing to the right, the strange thing is when you do a refresh it all sorts itself out and all is ok. Why would it be doing this??
241 Posted April 19, 2004 Posted April 19, 2004 PAGE DISPLAYS WRONG ON FIRST LOAD catalog/includes/application_top.php on the line below <?php at the very beginning of the file, add ini_set ( 'session.use_trans_sid', 0); chmod would be 644 and then if you still get the message try 444 read only state. Then your next question will be how can I remove the three images from the header right hand side No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.