Zen Cart Logo
Forums / Basic Configuration / Timeout after setting ENABLE_SSL to true

Timeout after setting ENABLE_SSL to true

Views: 1,986

Results 1 to 12 of 12
26 Feb 2013, 6:33 PM
#1
sruby avatar

sruby

New Zenner

Join Date:
Feb 2013
Posts:
6
Plugin Contributions:
0

Timeout after setting ENABLE_SSL to true

I am at my wits end trying to take a working Zencart non SSL and changing it to SSL. I have read a large number of posts and followed the install requirements by changing configure.php to indicate my https site. I have verified that the certificate has been installed correctly also that the ssl test does in fact show Protocol detected: SSL. When define('ENABLE_SSL', 'false'); in configure.php everything works (no ssl). When define('ENABLE_SSL', 'true'); I get a timeout error. When I run anything else but index.php on the site using https I have no problems or error.

Zencart Version: 1.3.9g
Server Information
Server Host: explosionofcolors.com
Server OS: Linux web103c10 2.6.31.12.With.Authcache+Pxeboot_Cmdline_4096 #1 SMP Mon Dec 13 21:56:57 EST 2010 i686
Database: MySQL 5.5.25a
HTTP Server: Apache
PHP Version: 5.3.14 (Zend: 2.3.0)

26 Feb 2013, 6:39 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Timeout after setting ENABLE_SSL to true

sruby:

When define('ENABLE_SSL', 'false'); in configure.php everything works (no ssl). When define('ENABLE_SSL', 'true'); I get a timeout error.The timeout really looks like a server-side issue.

sruby:

I have verified that the certificate has been installed correctly also that the ssl test does in fact show Protocol detected: SSL.Please show how you "verified" this. What steps can I take to witness the same proof?

sruby:

When I run anything else but index.php on the site using https I have no problems or error.Such as ...?

26 Feb 2013, 8:36 PM
#3
sruby avatar

sruby

New Zenner

Join Date:
Feb 2013
Posts:
6
Plugin Contributions:
0

Re: Timeout after setting ENABLE_SSL to true

DrByte:

The timeout really looks like a server-side issue.

Please show how you "verified" this. What steps can I take to witness the same proof?

Such as ...?

Protocol detected: SSL

Array
(
[DOCUMENT_ROOT] => /services/webpages/e/x/explosionofcolors.com/secure
[SERVER_DOMAIN] => explosionofcolors.com
[GDFONTPATH] => /services/share/fonts
[MvCONFIG_LIBRARY] => /services/websoftware/miva/Empresa/cgi-bin/libmivaconfig.so
[HTTPS] => on
[HTTP_HOST] => https://www.explosionofcolors.com
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_DNT] => 1
[HTTP_COOKIE] => __utma=7748198.339067802.1352144320.1361822076.1361900608.30; __utmz=7748198.1361822076.29.7.utmcsr=localhost|utmccn=(referral)|utmcmd=referral|utmcct=/index.php; HashCookie=+xt6R99C1DdrvYrkI3rW+3hu19NcGiGYRh+fxfs8AztDadvxgjBa85EGyhN6NisxoWyURRKZ/8f3JM4=; zenid=jkmkp584gbajfgk8glhhlsa4s5; __utmc=7748198; __utmb=7748198.1.10.1361900608
[HTTP_CONNECTION] => keep-alive
[PATH] => /usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => https://www.explosionofcolors.com
[SERVER_ADDR] => 209.235.135.13
[SERVER_PORT] => 443
[REMOTE_HOST] => 236.112.250.63.static.addr.dsl4u.ca
[REMOTE_ADDR] => 63.250.112.236
[SERVER_ADMIN] => [email protected]
[SCRIPT_FILENAME] => /services/webpages/e/x/explosionofcolors.com/secure/ssltest.php
[REMOTE_PORT] => 54674
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /ssltest.php
[SCRIPT_NAME] => /ssltest.php
[PHP_SELF] => /ssltest.php
[REQUEST_TIME] => 1361900655
[argv] => Array
(
)

[argc] => 0

)

26 Feb 2013, 8:39 PM
#4
sruby avatar

sruby

New Zenner

Join Date:
Feb 2013
Posts:
6
Plugin Contributions:
0

Re: Timeout after setting ENABLE_SSL to true

To verify ssl is in fact working on non Zen cart

https://www.explosionofcolors.com/indexhtml

26 Feb 2013, 9:24 PM
#5
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Timeout after setting ENABLE_SSL to true

GET "https://explosionofcolors.com/includes/templates/sophyblue/css/style_imagehover.css"
Connect to 69.49.101.51 on port 443 ... failed
Error 113: No route to host
Error while fetching URL

GET "https://www.explosionofcolors.com/includes/templates/sophyblue/css/style_imagehover.css"
Connect to 209.235.135.13 on port 443 ... ok

Note there are two different IP addresses being returned (and are probably two completely different servers). Also note "www.explosionofcolors .com" works while "explosionofcolors .com" does not work.

Take a look at your TWO configure.php files. Do you happen to have:

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

instead of

define('HTTP_SERVER', 'http://www.explosionofcolors.com');
define('HTTPS_SERVER', 'https://www.explosionofcolors.com');
26 Feb 2013, 9:36 PM
#6
sruby avatar

sruby

New Zenner

Join Date:
Feb 2013
Posts:
6
Plugin Contributions:
0

Re: Timeout after setting ENABLE_SSL to true

Take a look at your TWO configure.php files. Do you happen to have:

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

instead of

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

I have tried both, currently I have the second one

26 Feb 2013, 10:28 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Timeout after setting ENABLE_SSL to true

sruby:

[DOCUMENT_ROOT] => /services/webpages/e/x/explosionofcolors.com/secure
[SCRIPT_FILENAME] => /services/webpages/e/x/explosionofcolors.com/secure/ssltest.php

Do your Zen Cart files reside in your "/secure" folder? If not, then you've got a server configured according to 1990 standards where servers couldn't serve both HTTP and HTTPS content from the SAME directory.

Zen Cart uses the modern configuration where servers use the SAME directory to serve BOTH content types.

Get your hosting company to set your server up so that your HTTP and HTTPS traffic come from the SAME folder on ONE server, and then it'll work just fine.

27 Feb 2013, 3:14 PM
#8
sruby avatar

sruby

New Zenner

Join Date:
Feb 2013
Posts:
6
Plugin Contributions:
0

Re: Timeout after setting ENABLE_SSL to true

DrByte:

sruby:

[DOCUMENT_ROOT] => /services/webpages/e/x/explosionofcolors.com/secure
[SCRIPT_FILENAME] => /services/webpages/e/x/explosionofcolors.com/secure/ssltest.phpDo your Zen Cart files reside in your "/secure" folder? If not, then you've got a server configured according to 1990 standards where servers couldn't serve both HTTP and HTTPS content from the SAME directory.

Zen Cart uses the modern configuration where servers use the SAME directory to serve BOTH content types.

Get your hosting company to set your server up so that your HTTP and HTTPS traffic come from the SAME folder on ONE server, and then it'll work just fine.

First I do not have a specific folder /secure.

Second I am verifying with our hosting company if in fact HTTP and HTTPS are set to the same folder on one server.

27 Feb 2013, 4:18 PM
#9
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Timeout after setting ENABLE_SSL to true

It now looks to me like the generated pages are now correctly using "www.explosionofcolors.com" instead of "explosionofcolors.com" where generated by Zen Cart and your template resources are now omitting the incorrect "http://explosionofcolors.com" - so external resources are loading correctly.

I should note there are a few 404's still such as "/includes/templates/sophyblue/jscript/complete-com.js" but things are looking much better now. You might want to check and make sure this file was correctly uploaded if it is part of your template.

If you use Firefox you can install FireBug (and use FireBug's "net" tab) to watch each request made by the browser when loading your page. This lets you quickly find broken resources and diagnose issues.

It now appears your site is working (no longer appears to time out) and displaying pages. Did you need to change anything other then the two "configure.php" files and your templates?

27 Feb 2013, 5:38 PM
#10
kobra avatar

kobra

Black Belt

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

Re: Timeout after setting ENABLE_SSL to true

/includes/templates/sophyblue/jscript/complete-com.js
Apparently, the naming convention has not been followed where this should be

jscript_complete-com.js

27 Feb 2013, 7:42 PM
#11
sruby avatar

sruby

New Zenner

Join Date:
Feb 2013
Posts:
6
Plugin Contributions:
0

Re: Timeout after setting ENABLE_SSL to true

kobra:

Apparently, the naming convention has not been followed where this should be

jscript_complete-com.js

I want to thank everyone for there help in solving this problem. Replaced the existing configure.php file with a backup copy and suddenly it is now working.

Will look into jscript_complete-com.js issue.

Thanks again.