Page 2 of 2

Re: configuring for ssl

Posted: Tue Sep 20, 2011 12:33 am
by comicxhub
Hi All, I am having a problem configuring my new SSL, i tried following the steps seen on most forums but I still do not get the secured https:// when I click on Register account or Checkout.

Can anyone help?

here is what I have for the root config.php



<?php
// HTTP
define('HTTP_SERVER', 'http://XXXXX.com/');
define('HTTP_IMAGE', 'http://XXXXX.com/image/');
define('HTTP_ADMIN', 'http://XXXXX.com/admin/');

// HTTPS
define('HTTPS_SERVER', 'http://XXXXX.com/');
define('HTTPS_IMAGE', 'http://XXXXX.com/image/');

and here's for the admin config.php

<?php
// HTTP
define('HTTP_SERVER', 'http://comicxhub.com/admin/');
define('HTTP_CATALOG', 'http://comicxhub.com/');
define('HTTP_IMAGE', 'http://comicxhub.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://comicxhub.com/admin/');
define('HTTPS_IMAGE', 'http://comicxhub.com/image/');

I have switched back the setting under admin settings to not use SSL, hoping that when you guys reply, I can start from scratch.

I just bought an SSL cert from my host as well as a dedicated IP.

what do I do now?

PLEASE HELP!
Thanks in advance

Re: configuring for ssl

Posted: Tue Sep 20, 2011 12:40 am
by uksitebuilder
<?php
// HTTP
define('HTTP_SERVER', 'http://comicxhub.com/');
define('HTTP_IMAGE', 'http://comicxhub.comimage/');
define('HTTP_ADMIN', 'http://comicxhub.comadmin/');

// HTTPS
define('HTTPS_SERVER', 'https://comicxhub.com/');
define('HTTPS_IMAGE', 'https://comicxhub.com/image/');

and here's for the admin config.php

<?php
// HTTP
define('HTTP_SERVER', 'http://comicxhub.com/admin/');
define('HTTP_CATALOG', 'http://comicxhub.com/');
define('HTTP_IMAGE', 'http://comicxhub.com/image/');

// HTTPS
define('HTTPS_SERVER', 'https://comicxhub.com/admin/');
define('HTTPS_IMAGE', 'https://comicxhub.com/image/');

Re: configuring for ssl

Posted: Mon Oct 03, 2011 6:22 pm
by dazthephot
I have been looking at this today and trying to figure it out.

When i log in to Admin, then enable SSL in system/settings it says "make sure the config file in ""admin"" and ""catalogue"" is configured properly.

Well i can see the config file in Admin but there isn't one in Catalogue? So i'm confused.

When i enabled SSl after configuring the Admin - config.php and the config file in the root folder, my store broke.

any suggestions??

Re: configuring for ssl

Posted: Mon Oct 03, 2011 6:32 pm
by uksitebuilder
It's in the root of your store where index.php is, there should be a config.php file there

also one in admin/config.php

Re: configuring for ssl

Posted: Mon Oct 03, 2011 6:51 pm
by dazthephot
thanks for the quick response. Still no joy though.

all the https's show up in the right place but when you hit "checkout" you get the secure web page warning from windows, you allow unsecure or disallow content and the page is redirected to a server landing page.

i changed the route config file and the admin config file with the following

<?php
// HTTP
define('HTTP_SERVER', 'http://mystore.co.uk/ocart/admin/');
define('HTTP_CATALOG', 'http://mystore.co.uk/ocart/');
define('HTTP_IMAGE', 'http://mystore.co.uk/ocart/image/');

// HTTPS
define('HTTPS_SERVER', 'https://secure1.namesco.net/mystore.co.uk/ocart/admin/');
define('HTTPS_IMAGE', 'https://secure1.namesco.net/mystore.co.uk/ocart/image/');

Re: configuring for ssl

Posted: Mon Oct 03, 2011 6:56 pm
by uksitebuilder
Shared SSL is not supported by default in OC

You will either need to (a) get a dedicated SSL cert that matches your domain name or (b) Grab an extension that allows the use of Shared SSL certs [see the list of my extensions in my sig if you want to go that route]

Re: configuring for ssl

Posted: Mon Oct 03, 2011 6:59 pm
by dazthephot
great thank you i'll check that out.

Re: configuring for ssl

Posted: Fri Oct 14, 2011 6:43 pm
by dazthephot
had a look, seems that unless the ocart installation is in the main directory this shared ssl extension won't work.

i can move the main website onto another domain host no problem but that will leave ocart's index file inside the ocart folder. if i move the entire contents of the ocart installation outside of this folder so it lives as the main site, will the whole link structure of ocart be affected?

Re: configuring for ssl

Posted: Fri Oct 14, 2011 6:57 pm
by uksitebuilder
please pm me with your Full domain and path to your OC store and also the SSL URL you have

Re: configuring for ssl

Posted: Fri Oct 14, 2011 8:30 pm
by dazthephot
sorry should have described it better.

upon reading the notes about the extension..... i haven't actually bought it yet.

Re: configuring for ssl

Posted: Fri Oct 14, 2011 9:12 pm
by uksitebuilder
If you aren't using the htaccess for SEO URLs then it will work

but if your store is in a subfolder www.yourdomain.com/shop for instance then you will likely have RewriteBase /shop/ set in your htaccess

so if your ssl domain was www.sharedserver.com/clientname/shop/

Then htaccess would kill off the clientname and the site would break

Re: configuring for ssl

Posted: Mon Oct 17, 2011 5:35 pm
by dazthephot
thats exactly what happens. although it displays the site in https, when you add a product and click checkout you get a browser error.
the client wanted a secure processing credit card facility but didn't want to pay (typically), i setup offline card processing but i couldn't make it secure.
i have since advised him that an integrated merchant account (worldpay) is the best solution as he already has a streamline mechant account for customer transactions.
thanks for your help, another lesson learned for my next shop.

Re: configuring for ssl

Posted: Sun Jan 04, 2015 7:34 pm
by revolvefitness
-deleted.