Forums / General Questions / Installed SSL, now Zen won't login

Installed SSL, now Zen won't login

Views: 1,277

Results 1 to 9 of 9
28 Apr 2011, 3:25 AM
#1
sambo95 avatar

sambo95

New Zenner

Join Date:
Apr 2011
Location:
CA
Posts:
23
Plugin Contributions:
0

Installed SSL, now Zen won't login

I installed SSL last night, and then enabled a mod_rewrite today to make my site automatically load up https, but now Zen won't let me log in. I found this article and attempted to make the necessary changes in the code, but the portion of the code that should be there, isn't there. Can someone help me with this? Here's what the code (and surrounding code) looks like, notice it's missing the "define('ENABLE_SSL', 'true');"

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://store.capitalpyro.com');
define('HTTPS_SERVER', 'https://store.capitalpyro.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');


28 Apr 2011, 4:24 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Installed SSL, now Zen won't login

You appear to have something doing an auto-redirect to your secure pages rather than let Zen Cart control them ...

Going to:
store.capitalpyro.com

automatically goes to secure ... and this is incorrect ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Apr 2011, 4:32 AM
#3
sambo95 avatar

sambo95

New Zenner

Join Date:
Apr 2011
Location:
CA
Posts:
23
Plugin Contributions:
0

Re: Installed SSL, now Zen won't login

Yes that is correct, I inserted a mod_rewrite in the .htaccess file to make the page load up https automatically. I still need to configure Zen for ssl though so I'll remove it for now, but it still won't work. I'm looking at the directory as well, and it looks like there isn't even an admin file. Is there something wrong with my copy of Zen?

28 Apr 2011, 4:41 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Installed SSL, now Zen won't login

Now change the enable to true in the:
/includes/configure.php

and it will use SSL when needed ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Apr 2011, 4:43 AM
#5
sambo95 avatar

sambo95

New Zenner

Join Date:
Apr 2011
Location:
CA
Posts:
23
Plugin Contributions:
0

Re: Installed SSL, now Zen won't login

It still doesn't work, I get an error message. Is the problem that the coding isn't the same as in the tutorial?

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://store.capitalpyro.com');
define('HTTPS_SERVER', 'https://store.capitalpyro.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
28 Apr 2011, 1:03 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Installed SSL, now Zen won't login

What error message are you getting?

To turn on your SSL you need to set this to true:

define('ENABLE_SSL', 'false');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Apr 2011, 9:01 PM
#7
sambo95 avatar

sambo95

New Zenner

Join Date:
Apr 2011
Location:
CA
Posts:
23
Plugin Contributions:
0

Re: Installed SSL, now Zen won't login

When I save it (using host gator's online editor) it gives me this error message:

[a fatal error or timeout occurred while processing this directive]

And then when you click on it (the above error message) it takes you to this:

open configure.php failed: Permission denied at cpanel line 4774
	Carp::croak('open configure.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1152
	Cpanel::Fileman::fmsavefile('%2fhome%2fsam%2fpublic_html%2fstore%2fincludes', 'configure.php', '<?php^M^J/**^M^J * @package Configuration Settings circa 1.3.9^M^J * @...', 1, 1) called at cpanel line 4774
	main::__ANON__('%2fhome%2fsam%2fpublic_html%2fstore%2fincludes', 'configure.php', '<?php^M^J/**^M^J * @package Configuration Settings circa 1.3.9^M^J * @...', 1, 1) called at cpanel line 1335
	eval {...} called at cpanel line 1335
	main::real_exectag('<cpanel Fileman="fmsavefi
29 Apr 2011, 12:23 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Installed SSL, now Zen won't login

It looks like you are trying to use cPanel to edit your files ...

You really only want to use a proper Text Editor and FTP your files to your server ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Apr 2011, 12:30 AM
#9
sambo95 avatar

sambo95

New Zenner

Join Date:
Apr 2011
Location:
CA
Posts:
23
Plugin Contributions:
0

Re: Installed SSL, now Zen won't login

Ajeh:

It looks like you are trying to use cPanel to edit your files ...

You really only want to use a proper Text Editor and FTP your files to your server ...

I'll try that, thanks!