Advertisement:

Author Topic: Converting to https, step-by-step...  (Read 97149 times)

Offline zakallin69

  • Semi-Newbie
  • *
  • Posts: 33
Re: Converting to https, step-by-step...
« Reply #80 on: June 10, 2019, 05:40:19 AM »
First, i'm sorry if this is in wrong place but hopefully someone can help....and my native language is finnish so my english could be some kind of poor  ::)

I'm admin in forum (2.0.15) and everything is working fine until i tried to get ads manager to work.
Talked to developer and he checked it and said it's some problem with hosting.
So i contact them and answer was there's problem with http-redirecting.....
I made new .htaccess-file and tested it and it went ok. Next i ran repair_settings.php and no effect.
So some still some images not loading properly in forum, don't know what else i could do.
And last, i'm not any kind of coder at all so knowledge of this is not so good  :-\

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,293
    • sbulen on GitHub
Re: Converting to https, step-by-step...
« Reply #81 on: June 10, 2019, 05:48:53 AM »
Do you have the image proxy enabled?  If so, try disabling it.

This will result in the loss of a padlock under some situations (when you have an image link to an http photo) but may get you your photos back.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline zakallin69

  • Semi-Newbie
  • *
  • Posts: 33
Re: Converting to https, step-by-step...
« Reply #82 on: June 10, 2019, 05:55:52 AM »
Do you have the image proxy enabled?  If so, try disabling it.

This will result in the loss of a padlock under some situations (when you have an image link to an http photo) but may get you your photos back.

Where i do that proxy thing  ???
And now only missing images are new post icons and all ad photos i try to link.

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 2,293
    • sbulen on GitHub
Re: Converting to https, step-by-step...
« Reply #83 on: June 10, 2019, 06:07:43 AM »
If its restricted to message icons, it's not a proxy issue.

I would double-check all image & avatar folder settings first. 

If you're having an issue with the ads manager mod, I would suggest posting in the support thread for that mod.


Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline zakallin69

  • Semi-Newbie
  • *
  • Posts: 33
Re: Converting to https, step-by-step...
« Reply #84 on: June 10, 2019, 06:12:06 AM »
If its restricted to message icons, it's not a proxy issue.

I would double-check all image & avatar folder settings first. 

If you're having an issue with the ads manager mod, I would suggest posting in the support thread for that mod.

Thanks again for your answer.....
Yep, that ad manager is one thing but where to check those folder settings....i mean if i manage to get them right it's nice to see if it affects that mod too?

Offline zakallin69

  • Semi-Newbie
  • *
  • Posts: 33
Re: Converting to https, step-by-step...
« Reply #85 on: June 10, 2019, 07:56:36 AM »
If its restricted to message icons, it's not a proxy issue.

I would double-check all image & avatar folder settings first. 

If you're having an issue with the ads manager mod, I would suggest posting in the support thread for that mod.

Thanks again for your answer.....
Yep, that ad manager is one thing but where to check those folder settings....i mean if i manage to get them right it's nice to see if it affects that mod too?

EDIT : i got this figured out and working now.......

Offline nax

  • Jr. Member
  • **
  • Posts: 378
  • Gender: Male
Re: Converting to https, step-by-step...
« Reply #86 on: June 30, 2019, 08:02:47 AM »
Just for clarification that I’m going to do this correctly…..
I look after a forum hosted by G C Solutions, we are currently on SMF 2.0.15 and I want to convert to https.  We have purchased an SSL certificate ant this is installed and checked using https://www.sslshopper.com/ssl-checker.html
So to proceed I should :
1.   add in the redirect lines into the .htacess file
2.   put the site into maintenance mode
3.   upload and run repair_settings.php – do I need to run this as https://www.mysite.com/repair_settings.php ? Or is the http prefix ok?
4.   Change the following from http to https:-
 - $boardurl
 - Your Smileys URL
 - Your Avatars URL
 - Your Custom Avatars URL (if you have one)
 - Your Theme URL (one for each theme!!!!)
 - Your Theme/Images URL (one for each theme!!!!)

Question; this states one for each theme? I’m not sure what is meant here as although several themes are install on our forum only one bespoke based on the Curve default is used.  Do I need to pick each of the themes in turn changing their prefix to https and saving in repair_settings before ending up with my current theme location?  I’m just a little confused here.

5.   Tick the Enable Proxy Image box in the Server Settings/General page
6.   Do I need to alter the .php file where the forum logo is called, it’s held locally on the server – can anyone tell me offhand which file this is that is the main page (I know I can figure it out but I’m trying to reduce the forum downtime)
7.   Run repair_settings.php again just to check all is ok
8.   Take the forum out of maintenance mode
9.   Check using tools to see if any other forum page elements are incorrectly configured
10.   Have a large gin and tonic.

Offline nax

  • Jr. Member
  • **
  • Posts: 378
  • Gender: Male
Re: Converting to https, step-by-step...
« Reply #87 on: July 03, 2019, 10:03:59 AM »
Re my last post there..... I've completed the change to https: without any problems.  I didn't realise that in the repair_settings screen all themes installed in SMF are shown so I understand the instructions now (it's not often most of us would be running this), basically any line that has http in it you change to https.  If all your users use one theme odds are your forum "home page" may contain images that still use http, the file that is probably being call ed is /www/Themes/your_theme_name/index.template.php but use the tools suggested to check for mixed image content errors.

Offline willemb

  • Semi-Newbie
  • *
  • Posts: 12
Re: Converting to https, step-by-step...
« Reply #88 on: September 09, 2019, 06:26:05 AM »
(...)
Hope this helps.

It sure did, thanks! It went like a breeze for us (2.015, default theme). The only manual http -> https correction I needed was for our logo.

Offline HusaBob

  • Semi-Newbie
  • *
  • Posts: 53
Re: Converting to https, step-by-step...
« Reply #89 on: November 15, 2019, 04:07:36 PM »
Wow is this confusing!!

Our site is at 2.0.15. We bought a SSL Certificate last year but never knew we had to alter the site.

Frankly I don't see any real reason for the SSL....it's just a hobby BBoard. We're not participating in Swiss banking or anything.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,951
Re: Converting to https, step-by-step...
« Reply #90 on: November 15, 2019, 04:28:16 PM »
The SSL is because a) browsers will tell your users your site is insecure without it, b) they're now free with Let's Encrypt, c) on the presumption that your members reuse passwords between your site and other sites, without SSL their passwords could be seen by anyone on the same network, great if you're using say 4G...

Offline laurent629

  • Semi-Newbie
  • *
  • Posts: 64
  • Gender: Male
    • La boutique rétro & vintage
Re: Converting to https, step-by-step...
« Reply #91 on: December 15, 2019, 09:53:53 AM »
Bonjour,

Pour celui ou celle qui n'y connaît rien en informatique vos solutions sont inefficaces. Comme d'habitude les membres des forum spécialisés pensent toujours s'adresser à des gens qui maîtrise. Concernant le fait de passer de http à https, je viens confirmer que c'est beaucoup trop compliqué pour des personnes comme moi et ça ne marche jamais.

J'ai bien installé les certificats SSL mais c'est loin de suffire. Un certain nombre d'erreurs subsistent et j'ai abandonné.Problèmes d'adresses IP dynamiques, problèmes d'ancien logo, problèmes "d'auto hébergé"partout. Mes certificats Let'Encrypt bien en place me font bien rire (jaune).

A se demander si l'administration d'un forum tel que SMF ou autre est strictement réservé à une élite. Et encore, j'ai eu un peu de chance qu'un sympathique membre ai pu faire lui-même ma mise à jour gratuitement sur son temps à lui. Je n'oserai pas lui demander plus, il serait capable de le faire pour moi.

Vous devriez trouver une solution pour "les p'tits copains" qui sont nul en gestion de serveur. Demander une faible participation, on vous donne nos identifiants et accès et vous le faite pour nous.

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,427
  • Gender: Male
    • Kindred-999 on GitHub
Re: Converting to https, step-by-step...
« Reply #92 on: December 16, 2019, 03:53:35 PM »
Please post in English here ---   or ask your question in the French Language support boards. :D
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline laurent629

  • Semi-Newbie
  • *
  • Posts: 64
  • Gender: Male
    • La boutique rétro & vintage
Re: Converting to https, step-by-step...
« Reply #93 on: December 17, 2019, 11:39:39 AM »
Ok, sorry i said :

Hello,

For those who know nothing about IT, your solutions are ineffective. As usual, members of specialized forums have always addressed people who have mastered it. Regarding the fact of going from http to https, I just confirmed that it is far too complicated for people like me and it never works.

I have installed the SSL certificates, but that is far from enough. A number of errors remain and I have given up. Dynamic IP address issues, old logo issues, "self hosted" issues everywhere. My Let'Encrypt certificates in place make me laugh (yellow).

To wonder if the administration of a forum such as SMF or other is strictly reserved for an elite. And again, I was lucky that a nice member was able to do my own free update on his own time. I would not dare ask him more, he would be able to do for me.

You should find a solution for "the little buddies" who suck in server management. Request a low participation, we give you our identifiers and access and you do it for us.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,571
Re: Converting to https, step-by-step...
« Reply #94 on: December 17, 2019, 11:43:09 AM »
we have a charter membership where you can donate to the project and we offer some support as a perk of that membership. some team member(s) may be able to assist you further with that request.

https://www.simplemachines.org/charter/

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,427
  • Gender: Male
    • Kindred-999 on GitHub
Re: Converting to https, step-by-step...
« Reply #95 on: December 17, 2019, 10:04:43 PM »
It's not that hard or elite...
I converted 4 sites to https in under 30 minutes.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,938
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Converting to https, step-by-step...
« Reply #96 on: December 18, 2019, 12:12:49 AM »
Also, things can be made a lot easier with a proper selection of hosts, as many hosts have tools for automating a free SSL cert and related redirects on the server. After that it's just a matter of cleaning your forum settings really.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline laurent629

  • Semi-Newbie
  • *
  • Posts: 64
  • Gender: Male
    • La boutique rétro & vintage
Re: Converting to https, step-by-step...
« Reply #97 on: December 18, 2019, 11:05:51 AM »
we have a charter membership where you can donate to the project and we offer some support as a perk of that membership. some team member(s) may be able to assist you further with that request.

https://www.simplemachines.org/charter/

So this is a very good thing. I am not the last to donate to forums.
I keep this link.

Offline HusaBob

  • Semi-Newbie
  • *
  • Posts: 53
Re: Converting to https, step-by-step...
« Reply #98 on: December 23, 2019, 03:52:28 PM »
Also, things can be made a lot easier with a proper selection of hosts, as many hosts have tools for automating a free SSL cert and related redirects on the server. After that it's just a matter of cleaning your forum settings really.

We use Site 5.

Offline daverj

  • Semi-Newbie
  • *
  • Posts: 10
Re: Converting to https, step-by-step...
« Reply #99 on: March 14, 2020, 06:07:54 PM »
I have an SMF site running 2.0.17. It's installed in mydomain.com/forum but is accessed through forum.mydomain.com

I just downloaded the repair_settings.php file from the link in one of the first couple of posts of this thread (the version for 2.0.x).

I installed it in the forum root folder (mydomain.com/forum). I then ran that page.

It showed Maintenance Mode: "Value not found" So I set it to OFF.
It showed Queryless URLs: "Value Not Found" so I set it to OFF.
It showed Database Engine: "Value not found" but had MySQL selected in the dropdown box, which is correct. So I left it alone.

I changed nothing else and hit "Save Settings".

I then opened another tab and browsed to the forum. Nothing. Blank white screen on Firefox. I opened Chrome and browsed to the forum, and it said not responding 500 error.

Luckily I had done a backup just before. I restored the home directory on the server and the forum is back.

What went wrong?