shiggie Posted March 13, 2003 Share Posted March 13, 2003 Hi All- I need some help with SSL. I have been browsing through some of the other SSL posts, have gotten some information, but also some conflicting info, and have become more confused in other areas :roll: I have a shared SSL certificate that I can use. The certificate is (for example purposes) https://www.example.com/~myusername I went to /catalog/includes/configure.php and changed this: define('HTTP_SERVER', 'http://mysite.com'); define('HTTPS_SERVER', 'https://mysite.com'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? TO THIS: define('HTTP_SERVER', 'http://mysite.com'); define('HTTPS_SERVER', 'https://www.example.com/~myusername'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? I went to my shopping cart, clicked on 'log in' and my site went to the url of http://www.example.com (the website from my certificate url). Since this was obviously wrong I changed it back to the way it was, but I have no idea what to do now. The only reason I did what I did is because I read it in another post where someone was asking how to configure SSL certificate. There was also an issue of uploading files twice, some said you had to others said you didn't. I briefly contemplated buying my own certificate, but I am trying to cut down costs at this time so if I can manage it with the shared one I would like to do so. Basically I have NO clue what to do. I need this done asap because someone actually went to my site and placed an order today :shock: I feel terrible because they had no idea they were not protected- but I didn't think anyone would find my site so quickly! yikes!! Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2003 Share Posted March 13, 2003 Shiggie, Did you change both the admin and catalog configure files? You also need to make sure that you have filled in the Doc Root. define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['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) You also need to find out from your host whether you need to upload the files to an HTTPS directory. Link to comment Share on other sites More sharing options...
shiggie Posted March 13, 2003 Author Share Posted March 13, 2003 Where is doc root? Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2003 Share Posted March 13, 2003 do you have your admin working? If so, click on tools, and then on server information. Scroll down tha page a ways and under the PHP info it should say doc_root. It will look something like: /usr/local/apache/htdocs Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2003 Share Posted March 13, 2003 Actually, you may not have a value where it says doc_root......further down the page under Environment it should have DOCUMENT_ROOT and that should work. Link to comment Share on other sites More sharing options...
shiggie Posted March 13, 2003 Author Share Posted March 13, 2003 Where do I fill it in? :oops: Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2003 Share Posted March 13, 2003 define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['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) Change the above to: define('DIR_FS_DOCUMENT_ROOT', '/WHAT/YOUR/ROOT/IS'); Link to comment Share on other sites More sharing options...
shiggie Posted March 13, 2003 Author Share Posted March 13, 2003 What I mean is, what file is that code in? configure.php? Thanks for your help, sorry if I am a bit of an idiot at this! Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2003 Share Posted March 13, 2003 Yes, it is in admin/includes/configure.php AND catalog/includes/configure.php. Link to comment Share on other sites More sharing options...
shiggie Posted March 13, 2003 Author Share Posted March 13, 2003 OK I see it now (in configure.php)... let me try and see what happens. thanks again! Link to comment Share on other sites More sharing options...
shiggie Posted March 13, 2003 Author Share Posted March 13, 2003 Well, it didn't work. But I am finding out if I need to upload to an https directory. I would assume that I'd see an https folder when I ftp and I don't, but maybe I need to create one. I'll post back if I ever get this working! Link to comment Share on other sites More sharing options...
ozstar Posted March 14, 2003 Share Posted March 14, 2003 Hi, Know the frustration you are going through however you might find a search on SSL or https will help you here. There is a lot of talk about the same subject and it seems there is not one defining quide of how one should change their configs. It is said that oscommerce is built to allow https without having to upload to another https dir. It is just you have to address the paths correctly in both configs.... admin and catalog. If I knew your answer I would give it to you. Do the search I'm sure you will get some info. Good Luck OZ :) Link to comment Share on other sites More sharing options...
mattice Posted March 14, 2003 Share Posted March 14, 2003 ..and it seems there is not one defining quide of how one should change their configs. That's because there are more then one different SSL server setups :D In any case her problems got solved in another thread. "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
2j Posted March 14, 2003 Share Posted March 14, 2003 do you know what thread her problems got solved in? So it's not necessary to put the applicable files in the SSL directory which is created in the root when you activate shared SSL. ? Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2003 Share Posted March 14, 2003 That depends on how your host has your account set up. Some servers only use one file. Some hosts use 2 directories, 1 HTTP, 1 HTTPS. Link to comment Share on other sites More sharing options...
mattice Posted March 14, 2003 Share Posted March 14, 2003 http://www.oscommerce.com/forums/viewtopic.php?t=37468 BirdBrain gave the other answer :D "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
leenoble Posted October 19, 2005 Share Posted October 19, 2005 Thanks guys, this helped me out! :thumbsup: Link to comment Share on other sites More sharing options...
Collegehoodies Posted March 6, 2007 Share Posted March 6, 2007 wow and i thought I would be able to log on here and figure out my SSL problems. having someone else program my page in oscommerce is proving to be a major headache for me. what is this talk about a shared ssl certificate? i would love to cut that cost way down Link to comment Share on other sites More sharing options...
i609 Posted April 26, 2007 Share Posted April 26, 2007 it'd be nice if that thread was still alive. Link to comment Share on other sites More sharing options...
ozstar Posted April 27, 2007 Share Posted April 27, 2007 The shared certificate is when your host provides a certificate for the whole server which you have a part of. Check with your support they may have to enable this for you if they even have it. More and more hosts are providing this as a free service. Good luck! :) Link to comment Share on other sites More sharing options...
Guest Posted February 4, 2008 Share Posted February 4, 2008 http://www.oscommerce.com/forums/viewtopic.php?t=37468BirdBrain gave the other answer :D Oh man ! Why? Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2008 Share Posted February 12, 2008 I am having the exact same problem as originally listed in 2002. The user document says nothing about the admin/includes/config file. I have made the recommended changes and am still unable to SSL my site. The broken thread is killing me. Does anyone have the answer to this? Thanks Shelley Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2008 Share Posted February 12, 2008 Got it... La la la... No medication needed :D How I solved it. Did not have to load catalog into the https directory on hosts server. In catalog/includes/configure.php file updated 2 lines: define('HTTPS_SERVER', 'https://www.mydomainname.com'); // important that you notice the 's'. original line had no 's' define('ENABLE_SSL', true); // set to 'true' as specified in user documentation then in catalog/admin/includes/configure.php file updated 2 lines: define('HTTPS_CATALOG_SERVER', 'https://www.sophiespleasure.com'); // important that you notice the 's'. original line had no 's' define('ENABLE_SSL_CATALOG', 'true'); // set to 'true' this is not specified in user documentation Hope this helps someone else. Thanks Shelley Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2008 Share Posted February 12, 2008 Jason Weber - community member has done a 123 step under Tips and Tricks to discuss this issue. In the catalog/admin/includes/configure.php file there are a total of 4 lines to be edited. Good Luck! Thanks Shelley Link to comment Share on other sites More sharing options...
fruitbat Posted March 20, 2008 Share Posted March 20, 2008 Hello, I'm having trouble too, my SSL cert is installed and I thought that I'd configured my config files correctly but when I click on "my account" it leads to a 404 error... http://www.copybits.co.uk Here is my amended code: catalog/includes/configure.php define('HTTP_SERVER', 'http://www.copybits.co.uk'); define('HTTPS_SERVER', 'https://www.copybits.co.uk'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.copybits.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'copybits.co.uk'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); 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/'); catalog/admin/includes/configure.php define('HTTP_SERVER', 'https://www.copybits.co.uk'); define('HTTP_CATALOG_SERVER', 'https://www.copybits.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://www.copybits.co.uk'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/usr/home/u1146/domains/copybits.co.uk/public_html/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/usr/home/u1146/domains/copybits.co.uk/public_html/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/'); Do I need to transfer any files into my private_html folder, my catalog folder is in public_html. Hope this is enough information for somebody to help me out :) Thanks Jo Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.