justdishes Posted March 1, 2009 Share Posted March 1, 2009 My admin page says my site "You are not protected by a secure SSL connection" I got my SSL cert done yesterday. Why does it not show up as being secure now? Also - I can not edit portions of my payment modules. I can not add pay to in the money order or edit the setting for the PP module. Help Link to comment Share on other sites More sharing options...
FIMBLE Posted March 1, 2009 Share Posted March 1, 2009 To activate as it were the https you need to edit For the backend admin / includes / configure.php For the front end catalog / includes / configure.php Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 To activate as it were the https you need to edit For the backend admin / includes / configure.php For the front end catalog / includes / configure.php Nic Thank you - but what do I need to edit in those folders? This forum has been great for me, but I'm fairly new to this, so any help is very much appreciated. Maryann Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 First you need to talk to your web host. When I go to your URL using HTTPS I get: Welcome You see this page because there is no Web site at this address. What you can do: Create domains and set up Web hosting using Parallels Plesk Control Panel. Try it yourself: https://yourdomain.com (with or without the "www." you still end up at the same place). After you get that fixed, then you can work on your config files. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 Now that you're past that pothole in the road, this should help: How to install SSL on OSC: A Simple 1-2-3 Instruction, Simple, straighforward instructions If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 Now that you're past that pothole in the road, this should help: How to install SSL on OSC: A Simple 1-2-3 Instruction, Simple, straighforward instructions Thank you. Wish me luck. My hosting company says it is working now. Maryann Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 This is what my includes/configure.php file reads like. My SSL is set up to www.colorfuldishes.com This does not look like the example (6) on the instructions you linked me too. <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://colorfuldishes.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://colorfuldishes.com/'); define('HTTPS_CATALOG_SERVER', 'http://colorfuldishes.com/'); define('ENABLE_SSL_CATALOG', '1'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/colorfuldishes.com/httpdocs/'); // where your pages are located on the server. define('DIR_WS_ADMIN', './admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/colorfuldishes.com/httpdocs/admin/'); define('DIR_WS_CATALOG', './'); define('DIR_FS_CATALOG', '/var/www/vhosts/colorfuldishes.com/httpdocs/'); 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_CATALOG_IMAGES', '../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_WS_CATALOG_LANGUAGES', '../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/'); Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 Thats the one for you ADMIN not your CATALOG The one for the catalog is /catalog/includes/configure.php Edit your last post and remove the database info (username and password) Do you want someone to hack your DB? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 Good. Now look in /catalog/includes/configure.php Post what you have for these seven lines: 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', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); POST THOSE SEVEN LINES ONLY!!! Right now this is coming out in your page source: <base href="HTTPS_SERVER./"> Your config file still needs some work. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 Thats the one for you ADMIN not your CATALOG The one for the catalog is /catalog/includes/configure.php Edit your last post and remove the database info (username and password) Do you want someone to hack your DB? :unsure: Thank you for the note - I did not notice the DB info at the bottom. I found the httpdocs/admin/includes/configure.php but I'm having a blond moment on the #6 my system shows httpdocs/includes/configure.php httpdocs/catalog - just has an image folder & index file What am I over looking? Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 My bad! :blush: You don't have a catalog. It's just /includes/configure.php but I'm having a blond moment on the #6 my system shows httpdocs/includes/configure.php That's the one. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 My bad! :blush: You don't have a catalog. It's just /includes/configure.php That's the one. ;) OK, so the code I copied before is what is in that file includes/configure.php there isn't anything about cookes for secure webserver checkout procedure? :blink: Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 No The one before was from your ADMIN If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 No The one before was from your ADMIN OK it seems I may have both files the same - How do I get the correct info in the correct folder / file? My site is loading up but it is showing an error now - Warning: The sessions directory does not exist: /var/lib/php/session. Sessions will not work until this directory is created. I was afraid of messing up these files. Help You need a crying smiley. LOL Maryann Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 Backup the config file here: httpdocs/includes/configure.php EDIT THE LINES I HAVE IN RED IN THE CODE BELOW TO WHATEVER YOUR DATABASE CREDENTIALS ARE. Then upload the file to: httpdocs/includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] 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://colorfuldishes.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers define('HTTPS_SERVER', 'https://colorfuldishes.com'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.colorfuldishes.com'); define('HTTPS_COOKIE_DOMAIN', '.colorfuldishes.com'); 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', '/var/www/vhosts/colorfuldishes.com/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection [color="#FF0000"][b] define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', '');[/b][/color] define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 OK it seems I may have both files the same - How do I get the correct info in the correct folder / file? My site is loading up but it is showing an error now - Warning: The sessions directory does not exist: /var/lib/php/session. Sessions will not work until this directory is created. I was afraid of messing up these files. Help You need a crying smiley. LOL Maryann I found the original configure.php file - this is what I have changed so far. What else do I need to change before I upload it to the site. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.colorfuldishes.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.colorfuldishes.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.colorfuldishes.com'); define('HTTPS_COOKIE_DOMAIN', 'www.colorfuldishes.com'); 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/'); Link to comment Share on other sites More sharing options...
justdishes Posted March 1, 2009 Author Share Posted March 1, 2009 I found the original configure.php file - this is what I have changed so far. What else do I need to changebefore I upload it to the site. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.colorfuldishes.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.colorfuldishes.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.colorfuldishes.com'); define('HTTPS_COOKIE_DOMAIN', 'www.colorfuldishes.com'); 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/'); Our messages are over lapping - you must of just posted when I did - I'll look over & see what I can do Thank you very much for all the help. Link to comment Share on other sites More sharing options...
germ Posted March 1, 2009 Share Posted March 1, 2009 These should be like this: define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 2, 2009 Author Share Posted March 2, 2009 These should be like this: define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Thank you. I believe my ssl is set up as www.colorfuldishes.com - so should I add the www. before colorfuldishes? Link to comment Share on other sites More sharing options...
germ Posted March 2, 2009 Share Posted March 2, 2009 The file you posted looked good to me except the lines I posted. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 2, 2009 Author Share Posted March 2, 2009 I uploaded the two files & my website would not even load up. :( The only thing I see that may be different is this line define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' on my admin one it is define('STORE_SESSIONS', ''); but I may have screwed that up - I check my webhosting & it shows my db is my sql. should I have both set at msql? Link to comment Share on other sites More sharing options...
germ Posted March 2, 2009 Share Posted March 2, 2009 I uploaded the two files What do you mean TWO files??? We're only editing the ONE configure file. You should use this: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
justdishes Posted March 2, 2009 Author Share Posted March 2, 2009 What do you mean TWO files??? We're only editing the ONE configure file. You should use this: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' OK, I was also talking about the admin/includes/configure.php file - (two files) I'm sorry if I'm making this confusing ... your help is very much appreciated. Link to comment Share on other sites More sharing options...
justdishes Posted March 2, 2009 Author Share Posted March 2, 2009 What do you mean TWO files??? We're only editing the ONE configure file. You should use this: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' This is the code I have <?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', 'http://www.colorfuldishes.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.colorfuldishes.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.colorfuldishes.com'); define('HTTPS_COOKIE_DOMAIN', 'www.colorfuldishes.com'); 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', '/var/www/vhosts/colorfuldishes.com/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Link to comment Share on other sites More sharing options...
germ Posted March 2, 2009 Share Posted March 2, 2009 That's not what I'm seeing in the source of your page. :huh: See if you have this file: /includes/local/configure.php If you have that file (it's OK if you don't) be sure nothing in it confilcts with what you just posted. Either that or you might have the admin config file in the place where the catalog one should be. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.