Post by thrashin » Mon Apr 13, 2015 1:13 pm

I need some help re SSL setup - hopefully some experts here can help!

I have setup an Opencart site at http://www.jupiter2lightmover.com , and cannot get SSL working on it. I have followed the steps which I have read in guides online for setting up SSL in openCart 2.0;

1. Making sure the cert is properly installed on the server (https://www.sslshopper.com/ssl-checker. ... tmover.com)

2. Make required changes to the config.php and admin/config.php files. I have done this:
HTTPS_SERVER for HTTPS in config.php set to HTTPS
HTTPS_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTPS

3. Make Sure SSL turned ON in site settings in opencart admin area

So all the above is done, yet it's not working. Major issues I see are:

- Loading https://www.jupiter2lightmover.com doesn't bring up https, but rather http:// site
- Once I have changed the admin/config.php file, I could not log in to the admin area of the opencart site - it would redirect back to the login screen. Once I changed the https settings in admin/config.php back to http, I could log back into the admin area.

I carried out a bunch of tests and documented observations in the hope that this may assist in troubleshooting the issue:

Settings:
HTTPS_SERVER for HTTPS in config.php set to HTTPS
HTTPS_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTPS
Use SSL turned ON in site settings in opencart admin area

Result:
1. Nothing in the URL bar shows as https
2. Try to load https://jupiter2lightmover.com, loads as http://
3. Can't log into admin area, just get returned to login screen
4. On website, "admin" type pages, the links on hover show as "https", but when you follow, they load as "http"
5. Links to product pages do not show or load as https, only http
6. Can add an item to cart, and checkout OK

==============================================================================

Then, if I force http to https in the config.php and admin/config.php:

Settings:
HTTPS_SERVER for HTTPS in config.php set to HTTPS
HTTPS_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTPS
HTTP_SERVER for HTTPS in config.php set to HTTPS
HTTP_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTPS
Use SSL turned ON in site settings in opencart admin area

1. Nothing in the URL bar shows as https
2. Try to load https://jupiter2lightmover.com, loads as http://
3. Can't log into admin area, just get returned to login screen
4. On website, "admin" type pages, the links on hover show as "https", but when you follow, they load as "http"
5. Links to product pages DO show as https, however they load as http
6. You CANNOT add an item to cart, just continues to show loading when trying to add the item to cart

===============================================================================

Then if I undo the force to use https in the config files, it reverts back to the first lot of results:

Settings:
HTTPS_SERVER for HTTPS in config.php set to HTTPS
HTTPS_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTPS
Use SSL turned ON in site settings in opencart admin area

Result:
1. Nothing in the URL bar shows as https
2. Try to load https://jupiter2lightmover.com, loads as http://
3. Can't log into admin area, just get returned to login screen
4. On website, "admin" type pages, the links on hover show as "https", but when you follow, they load as "http"
5. Links to product pages do not show or load as https, only http
6. Can add an item to cart, and checkout OK

================================================================================

Then if I remove the https config changes from the admin/config.php so I can log in to admin again:

Settings:
HTTPS_SERVER for HTTPS in config.php set to HTTPS
HTTPS_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTP
Use SSL turned ON in site settings in opencart admin area

1. Nothing in the URL bar shows as https
2. Try to load https://jupiter2lightmover.com, loads as http://
3. Can log into admin area again
4. On website, "admin" type pages, the links on hover show as "https", but when you follow, they load as "http"
5. Links to product pages do not show or load as https, only http
6. Can add an item to cart, and checkout OK

==================================================================================

Then if I turn off SSL in the OpenCart settings in the admin area under SERVER tab:

Settings:
HTTPS_SERVER for HTTPS in config.php set to HTTPS
HTTPS_SERVER & HTTPS_CATALOGUE for HTTPS in admin/config.php set to HTTP
Use SSL turned OFF in site settings in opencart admin area

1. Nothing in the URL bar shows as https
2. Try to load https://jupiter2lightmover.com, loads as http://
3. Can't log into admin area, just get returned to login screen
4. On website, "admin" type pages, the links on hover show as "https", but when you follow, they load as "http"
5. Links to product pages do not show or load as https, only http
6. Can add an item to cart, and checkout OK

==================================================================================

I know that's a lot of info, but I thought it might help.

Anyways, I really need a hand to get this up and running, so hopefully some of you experts can point me in the right direction!

Cheers,

Adam.

Newbie

Posts

Joined
Mon Nov 07, 2011 10:22 am

Post by yodapt » Mon Apr 13, 2015 1:19 pm

Have you checked your htaccess? The url is being rewritten to include the www, that could be changing the protocol too.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by thrashin » Tue Apr 14, 2015 8:00 am

Hi yodapt, thanks for the reply.

My .htaccess file contains this:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^jupiter2lightmover\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.jupiter2lightmover\.com$
RewriteRule ^(.*)$ "http\:\/\/www\.jupiter2lightmover\.com\/$1" [R=301,L]


I believe this comes from a redirect rule I have set up via my cpanel redirects page. I had to put it in there to rectify an issue I had with font awesome icons not displaying when accessing the site via non-www URL.

I thought of the .htaccess file and the redirect, so I removed it and put in a new one forcing the "http, non www" redirect to a "https, www" url.. but the site wouldn't load. I am loathed to try it again, as I knocked the site off-line for a bit. I also tried it with no redirect in place.. and the result was that the site loaded, but no SSL.

Any ideas on what might be going on, and what the next step might be?

Cheers,

Adam.

Newbie

Posts

Joined
Mon Nov 07, 2011 10:22 am
Who is online

Users browsing this forum: No registered users and 14 guests