Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Locked

Views: 7,539

Results 21 to 25 of 25
This thread is locked. New replies are disabled.
14 Sep 2007, 8:25 PM
#21
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Enabling SSL - Just changed cofigure.php files and now I'm getting an error

At the top of my /catalog/includes/configure.php files it says dist-configure.php

Should it?

Does the dist-configure.php file get changed and renamed configure.php upon installation or did I mess it up?

Bloome

14 Sep 2007, 8:30 PM
#22
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Kobra,

I see what you were talking about. It looks as though I had a copy and paste error in my post. Let me try that again:

Here is the catalog/includes/configure.php code:

define('HTTP_SERVER', 'http://tsilaorganics.com');
define('HTTPS_SERVER', 'https://tsilaorganics.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

// 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_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

and here is the catalog/admin/includes/configure.php code:

  define('HTTP_SERVER', 'http://tsilaorganics.com');
  define('HTTPS_SERVER', 'https://tsilaorganics.com');
  define('HTTP_CATALOG_SERVER', 'http://tsilaorganics.com');
  define('HTTPS_CATALOG_SERVER', 'https://tsilaorganics.com');

  // secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'true');
  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/');
14 Sep 2007, 9:06 PM
#23
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

anybody there?

14 Sep 2007, 9:11 PM
#24
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Couple of quick checks:

do you currently have a .htaccess and may be calling/redirecting to the www in it?
try renaming it temporarily to htaccess.txt

Is this installed to the root domain name or might this be an add-on domain to your account?

17 Apr 2008, 6:20 PM
#25
dwzap avatar

dwzap

New Zenner

Join Date:
Apr 2008
Posts:
2
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

You can run with a shared ssl but you will have to copy the whole catalog to your shared ssl folder. Then make sure the paths in the configure.php on your https server point to the files on that server, e.g e:/sslroot/secure_folder/store, and the http settings at the top are set to your http site and the https setting are set to the secure site and enable ssl is set to true. Make sure that the database settings refer to your database on the http site.

You will then have to set you configure.php settings on the http site to point to the ssl folder under the https line and again enable ssl = true.

It does work as I have done it but you will have to maintain two sets of you files but not the database contents, so if you edit a .php file, for example a new page, you will have to copy it to the secure site.

The ideal option is to get a host that gives you a dedicated ssl (around £40)and then the ssl space maps seamlessly to you normal web space.

Hope that helps