Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Had to set 'SLL' to False - how do I use Secure Transfers Now??

Had to set 'SLL' to False - how do I use Secure Transfers Now??

Locked

Views: 3,062

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Aug 2006, 10:39 PM
#1
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Had to set 'SLL' to False - how do I use Secure Transfers Now??

When I initially installed ZenCart, I chose 'yes' to use SSL.
This was because Im fairly sure my host allows it (1and1).
However, the result was that I could not get access to my Adim pages.
Having gone in an set the SSL in the config file to 'False', the Admin now works.
Does this mean that I cannot carry out secure transactions??
Anyone, please?

25 Aug 2006, 10:42 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

If you will do a search for 1and1 you should find several threads outlining the hosting specific things you need to do to use SSL with 1and1.

25 Aug 2006, 10:54 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

Also, when you elected SSL on the install you were electing to set the site up to use a full ssl certificate, and not your hosts shared ssl.

Vger

25 Aug 2006, 11:15 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

please post your /includes/configure.php and /admin/includes/configure.php file contents here, without password, and we'll see if there's any hint there of a configuration challenge.

26 Aug 2006, 7:56 PM
#5
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

Nice one guys....I'll do a search for 1and1 related threads on the forum and see how I get on.
Cheers...Jaz

27 Aug 2006, 2:46 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

You'll find that the 1and1 discussions related to SSL have contained suggestions that have been integrated into the core code for quite some time.

I suppose it's possible that 1and1 have changed some things, but who knows ... they've been consistently different than typical ISP's when it comes to server configurations.

You didn't explain what exactly was happening when it stopped working. You only said that you couldn't get into Admin. You didn't mention error messages, symptoms, details of what's in your server's errorlog at the time of attempting login, etc. You also didn't mention whether it affected the ability of your customers to log in or not.

There are many factors. That's why I asked to see your configure.php files as a starting point.

28 Aug 2006, 9:23 AM
#7
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

Ah, ok. Where should I put the config files? Just as an attachment to this thread?

28 Aug 2006, 11:49 AM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

Hi, Don't include the database section. Copy and paste the rest and enclose the code as follows:

  1. An opening square bracket followed by the word code, followed by a closing square bracket.
  2. Insert the code
  3. Another opening square bracket, followed by /code, followed by a closing square bracket.

Vger

28 Aug 2006, 12:30 PM
#9
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

This is the configure file in the admin/includes directory.
Note, I have not included the database section.
Do you need my other configure file (I.e. the one in the catalog/includes directory)?

[code

<?php // /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 */ // Define the webserver and path parameters // Main webserver: eg, http://localhost - should not be empty for productive servers // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ define('HTTP_SERVER', 'http://www.a1-media.co.uk'); define('HTTPS_SERVER', 'https://www.a1-media.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.a1-media.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://www.a1-media.co.uk'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); define('ENABLE_SSL_ADMIN', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); 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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ 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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection ?>

/code]

28 Aug 2006, 12:39 PM
#10
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

You are missing two lines, which define the root to the website:

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', 'path_to_root_of_admin_goes_here');
  define('DIR_FS_CATALOG', 'path_to_root_of_catalog_goes_here');

  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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

Vger

28 Aug 2006, 1:18 PM
#11
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

yeah - didnt think it prudent to paste too much information for everyone to see.
So I took these lines out also.

Here are the lines with the first part of the paths replaced with *.

define('DIR_FS_ADMIN', '*/htdocs/a1media/catalog/admin/');
define('DIR_FS_CATALOG', */htdocs/a1media/catalog/');

28 Aug 2006, 1:23 PM
#12
jaz1974 avatar

jaz1974

New Zenner

Join Date:
Aug 2006
Posts:
66
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

A wee additional note - something I've just discovered...
I set the catalog SSL to 'true' , leaving the admin SSL as 'false' - and it seems to work ok.
Perhaps this is the solution?

11 Sep 2006, 2:54 AM
#13
taurion avatar

taurion

New Zenner

Join Date:
Sep 2006
Posts:
1
Plugin Contributions:
0

Re: Had to set 'SLL' to False - how do I use Secure Transfers Now??

I too have the same problem using share SSL from ace-host.net. I can not login in Admin, firefox would just throw up an never ending redirect loop and gives up at the end. I end up with this setting and it work fine:

define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'false');

If anyone have a solution to this please let us know.

Thanks