solved Can't get SSL to work

alt=
@hello77957
5 years ago
56 posts
Hi, I followed the instructions to enable SSL and it logged me out before I could reset the caches. I couldn't get into my site so I put things back and still couldn't login.

After using the repair.php script I could log back in to http site, so I set config to https again and tried again. Same problem as before so I kept the SSL enabled and tried the repair.php again. It didn't work.

So i'm back to http with SSL disabled. I want to do ecommerce on my site so really need the SSL working.

Is there anything else I can try?
updated by @hello77957: 04/20/19 03:16:34PM
michael
@michael
5 years ago
7,714 posts
You don't seem to have a server on Jamroom Hosting

Your Profile -> Hosting
https://www.jamroom.net/hello77957/hosting/overview

So enabling SSL is something you setup with your server hosting company. You need an SSL certificate added to your server first so your site is visible on https://your-site.com then you can change the settings in your ACP.

If its just the cache you want to clear, use the manual method described here:

Docs: "Somethings wrong what do I do: Manually Clearing Caches"
https://www.jamroom.net/the-jamroom-network/documentation/troubleshooting/114/somethings-wrong-what-do-i-do
alt=
@hello77957
5 years ago
56 posts
Thank you, yes I had enabled the SSL on my server, tried activating it at their end, even tried a 301 redirect to force it. But it wouldnt work at the jamroom end.

I cant be sure if there's anything more I need to do from my server end or my jamroom end. I've only done SSLs on wordpress sites previously and they've not always been straightforward, but from those experiences, because the jamroom site is visible with SSL enabled, its working from server end,and because I cant login to jamroom with the SSL enabled then there's some adjustment I need to make at the jamroom end.

Using repair.php clears the cache so I don't think its a cache issue.
paul
@paul
5 years ago
4,326 posts
Make sure that the /data/config/config.php is configured correctly with the right base url.
Also, is this a stock Jamroom skin or have you edited it at all?
What is the site url?


--
Paul Asher - JR Developer and System Import Specialist
alt=
@hello77957
5 years ago
56 posts
Hi, yes i'd checked and re-checked the config.php (also deleted the cache folders). I'm using the Elastic2 skin 'as is'.

Strangest thing, I've just tried the site again with https and it seems to be working. It's enabled from my server end but not in jamroom config. I'm loathe to 'fix it when it aint broken' but will it cause any issues down the line if I don't have the redirect in the config file?
paul
@paul
5 years ago
4,326 posts
Quote: but will it cause any issues down the line if I don't have the redirect in the config file

So what does your config.php file look like now?


--
Paul Asher - JR Developer and System Import Specialist
brian
@brian
5 years ago
10,148 posts
hello77957:
Hi, yes i'd checked and re-checked the config.php (also deleted the cache folders). I'm using the Elastic2 skin 'as is'.

Strangest thing, I've just tried the site again with https and it seems to be working. It's enabled from my server end but not in jamroom config. I'm loathe to 'fix it when it aint broken' but will it cause any issues down the line if I don't have the redirect in the config file?

I'm not sure what you mean about a "redirect" in the config file. There's only one URL setting in the data/config/config.file - make sure it is set with https - i.e.

$_conf['jrCore_db_host'] = 'https://www.yoursite.com';

I'd do it in these steps:

- log in to your site before changing anything and go to Developer Tools and turn on Developer Mode - that will prevent caching from playing a part
- make the change in the data/config/config.php file to update your URL to the SSL version of the URL

That's pretty much it - you can add a forced redirect from non-SSL to SSL in your .htaccess file once you're sure everything is working.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@hello77957
5 years ago
56 posts
@Paul
paul:
So what does your config.php file look like now?

This is all that's in my config file (after adding the url setting then removing it)
<?php
$_conf['jrCore_db_host'] = 'XXX';
$_conf['jrCore_db_port'] = 'XXX';
$_conf['jrCore_db_name'] = 'XXX';
$_conf['jrCore_db_user'] = 'XXX';
$_conf['jrCore_db_pass'] = 'XXX';
$_conf['jrCore_base_url'] = 'http://XXX.co.uk';



@Brian
Yes sorry, the url setting in the config file is what I meant by 'redirect'

So as things stand, https is working with the SSL is enabled on my server and jamroom accepting it without the url setting in the config file.

I suspect the problems I was having were due to a delay in the SSL taking effect at the server end and I just needed to wait longer before panicking. :)
michael
@michael
5 years ago
7,714 posts
If you're going to force SSL in the ACP settings, make sure
$_conf['jrCore_base_url'] = 'http://XXX.co.uk'; 
is changed to https://

Tags