Zen Cart Logo
Forums / Installing on a Mac Server / SSL Admin logs out

SSL Admin logs out

Locked

Views: 6,130

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Jun 2011, 4:21 PM
#1
ididdy avatar

ididdy

New Zenner

Join Date:
Dec 2005
Posts:
7
Plugin Contributions:
0

SSL Admin logs out

Admin logs out when any menu item is clicked in SSL mode immediately after log-in. (Admin works find with SSL set to false.)
I've used Godady chained certificates and self signed certs with the same result.

This is a fresh unmodified (default installed) zen-cart test store (https://www.torcar.co)

Any ideas on what could be changed to get the admin to work in SSL mode would be appreciated.

Thank you.

Mac Snow Leopard Server 10.6.7
Database: MySQL 5.0.91-log
PHP Version: 5.3.4 (Zend: 2.3.0)
HTTP Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8l PHP/5.3.4
PHP Safe Mode: Off
Zen Cart 1.3.9h
Server OS: Darwin 10.7.0

11 Jun 2011, 4:38 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: SSL Admin logs out

Might want to check the cache folder to see if there are any debug files and check the configure.php to make sure all the references to ssl are correctly entered.

11 Jun 2011, 4:48 PM
#3
vger avatar

vger

Past Contributor

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

Re: SSL Admin logs out

Well, it's not surprising you have problems staying logged in to https. Your website is on the main domain and for some weird reason you've put the SSL connection on a sub-domain. The cookies won't match and so you'll get logged out.

Put the site on one of those two - main domain or sub-domain, but don't try to mix them.

Vger

11 Jun 2011, 6:42 PM
#4
ididdy avatar

ididdy

New Zenner

Join Date:
Dec 2005
Posts:
7
Plugin Contributions:
0

Re: SSL Admin logs out

Thank you for your reply. I understand what you are saying. Using the OS X Server Admin, I have not been able to find or figure out out how to do this. Do you have a suggestion or can you point to to a resource that gives a step by step. (Apple documentation is worthless to the novice web admin IMO)

Thank you.

11 Jun 2011, 10:49 PM
#5
vger avatar

vger

Past Contributor

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

Re: SSL Admin logs out

I can't help you with the vagaries of a Mac Server - other than to wonder why anyone would want to use one.

Installing an offline Linux server (Intranet) on a Mac told me all I wanted to know about the problems of running a server on a Mac. Every time Apple downloaded an update to the OS (OSX) it screwed up all of the server permissions.

Sorry I can't help any more, but I have at least pinpointed the problem for you.

Vger

12 Jun 2011, 1:20 AM
#6
ididdy avatar

ididdy

New Zenner

Join Date:
Dec 2005
Posts:
7
Plugin Contributions:
0

Re: SSL Admin logs out

Problem fixed.

In the admin configure.php file the "www." was removed from the define (HTTP_SERVER','http://www.example.com');). So http://www.example.com became http://example.com.
The sub domain was used for the HTTPS address. HTTPS_SERVER was changed to 'https://store.example.com'
Enable _SSL_CATALOG was set to true
Enable _SSL_ADMIN was set to true

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

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

The "www." was removed from the define('HTTP_SERVER', 'http://example.com'); in the configure.php file and changed to :

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

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

Everything works!

12 Jun 2011, 12:32 PM
#7
vger avatar

vger

Past Contributor

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

Re: SSL Admin logs out

Sort of makes sense - because on most systems the www. address is a subdomain of the http:// address

Vger