Zen Cart Logo
Forums / Basic Configuration / SSL help on 1and1 host

SSL help on 1and1 host

Locked

Views: 9,042

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
21 Jan 2010, 3:16 AM
#1
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

SSL help on 1and1 host

Hello I need help with SSL. My host is 1and1 and this seems to be a common problem. When I go to the secured website the page isn't formatted correctly. Apparently there are some codes I need to input to make the shared certificate work.

I found this on the internet but now sure what to do with #2. Also, I've searched up to page 25 and can't find a solution on zencart. Someone please help.

SHARED SSL WITH 1AND1 HOSTING


  1. Add below:
    $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
    this
    $request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';
    in
    includes/application_top.php

  2. The correct relative address html code for images using the dedicated ssl would be for example src="images/logo_background_default.gif" WITHOUT the '/' in the front. This is for either using your own html pages in the site or using the ever popular WYSIWYG HTML Editor which does not normally format the code in this way. Therefor you will need to manually change it.

  3. In includes/configure.php adjust your configuration in the following way in the example below.

define('HTTPS_SERVER', 'https://web1.secure-secure.com/yoursitename.com'); // eg, https://localhost - should not be empty for productive servers
define('HTTP_COOKIE_DOMAIN', 'www.yoursitename.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

21 Jan 2010, 7:00 AM
#2
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

Hello can someone help me. I spent all day trying to fix this and no resolve. I set all my files back to normal and removed ssl. No solution.

21 Jan 2010, 8:23 AM
#3
lvt_ltd avatar

lvt_ltd

New Zenner

Join Date:
Jun 2009
Posts:
65
Plugin Contributions:
0

Re: SSL help on 1and1 host

You need to open up your configure.php files in both your include and admin/include directories

Change the SSL address in each page to the SSLrelay address of your shared SSL certificate

21 Jan 2010, 10:01 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

Lost and Confused:

Hello can someone help me. I spent all day trying to fix this and no resolve. I set all my files back to normal and removed ssl. No solution.

There is a solution... move to a host that understands ZC.. 1and1 is like GoDaddy - useless for anything relating to eCommerce or CMS.

I had several clients on 1and1 but after much frustration with 1and1 we moved everything.

21 Jan 2010, 2:16 PM
#5
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

Thanks school boy...I'm starting to learn the hard way. How long does it take to switch hosts?

21 Jan 2010, 2:18 PM
#6
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

LVT that isn't the problem for me. I configured the both configure files but it something with my host. I was wondering if someone knew how to override it. I posted the codes above that I found from oscommerce which should override it. However, I have no clue what to do with step two.

21 Jan 2010, 4:09 PM
#7
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

Can someone please help me. Take a look at my website. I got it to load with ssl but it looks weird. font is huge size is huge and the code won't move from the top. Any help will be greatly appreciated. I'm starting to pull my hair out. and yes, I know move to another server, but in the mean time I would like to have an internet presence while moving to another server. Please help. Adult novelty website. https://www.petalsnpleasure.com

21 Jan 2010, 10:55 PM
#8
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

Once again; still receiving ssl difficulty. No response in how to fix therefore I have been troubleshooting for about two days now with no luck. I entered a code in which brings up the ssl site; however the template looks weird and the code isn't removed from the header. File use was application_top.php and code entered was:

$request_type = (getenv('HTTPS') == '80') ? 'SSL' : 'NONSSL';
$request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';

Any solution would be greatly appreciated

21 Jan 2010, 11:55 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

Are you trying to invoke SSL on your zencart install?

What is the purpose of that code, and who suggested you use it?

You configure your SSL ONLY in the two configure.php files.

(At least that's how I've always done it - - on about 120 sites so far).

22 Jan 2010, 3:16 PM
#10
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

Yes, I need SSL on my sites because my hosting company is 1and1 and their a little screwy. I know change hosting company. Yes, I will but I have to research who to go with so I don't end up in this situation again. However, I would like my site secured in the meanwhile and the basic format provided on enabling ssl doesn't work with 1 and 1. Configuring the the configure.php files, set to true, and put in the correct https address doesn't work with 1and1.

22 Jan 2010, 4:50 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

Who did you get your SSL Certificate from?

22 Jan 2010, 7:24 PM
#12
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

I got my certificate from 1and1 shared.

22 Jan 2010, 9:03 PM
#13
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

http://faq.1and1.com/domains/ssl/7.html

Look at point number 5 on that page. When you have set it up, that is the URL that you put into your configure.php files .

22 Jan 2010, 9:07 PM
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

The url you put into your configure files will look something like this:

https://ssl.perfora.net/**s107284519.yourwebsitename.com
**
Where:

s107284519.yourwebsitename.com

is the domain you choose in the 1and1 setup procedure...

22 Jan 2010, 9:09 PM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

Make sure this junk

$request_type = (getenv('HTTPS') == '80') ? 'SSL' : 'NONSSL';
$request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';

is deleted from all files where you hacked it in...

23 Jan 2010, 3:20 AM
#16
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

I have my url directly from 1and1 and I can get to the site. However, to enable the site per zen cart rules the ssl site must be functionly properly before configuring the configure.php files. When you go the secured site it is basically a plain text website no website template, no pictures enabled all white. It's not how the http site looks. So when I enable the configure files the site looks like a plain text website with no pictures or products loading. I want to post a screen shot but haven't figured out how to do this in this forum.

27 Jan 2010, 5:25 PM
#17
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: SSL help on 1and1 host

My site's on 1and1, too. I gave up on the shared certificate a couple of months ago and went to a dedicated one thru GeoTrust.

That said, I think that the issue is that the CSS (and any images they call out) and JS files get loaded via a 'relative' path and the whole ssl.perfora.net thing might want files using 'absolute' paths.

27 Jan 2010, 5:28 PM
#18
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL help on 1and1 host

OK, so go dedicated SSL, (or better... change hosts.)

27 Jan 2010, 5:41 PM
#19
vger avatar

vger

Past Contributor

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

Re: SSL help on 1and1 host

Your problem is probably with your includes/configure.php file. This is what your https pages say:

<base href="http://www.petalsnpleasure.comhttps://ssl.perfora.net/www.petalsnpleasure.com/" />

Vger

28 Jan 2010, 8:57 PM
#20
lost_and_confused avatar

lost_and_confused

New Zenner

Join Date:
Jan 2010
Posts:
69
Plugin Contributions:
0

Re: SSL help on 1and1 host

School boy I tried changing my host after this experience and I was booted from hostmonster because I was not within heir guidelines of site content.

lat9 - I can go directly to geotrust and buy a certificate? How does it work to set up on 1and1?

Vger - Where does it show that? I'm not sure what to change in my configure files as I do not have SSL enabled?

Thank you everyone for your help. As the days go by I am gaining more knowledge on zencart. Pretty soon I can offer help and support to others :-)