News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Converting to https, step-by-step...

Started by shawnb61, July 08, 2017, 03:01:04 AM

Previous topic - Next topic

zakallin69

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  :-\

shawnb61

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

zakallin69

Quote from: shawnb61 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.

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

shawnb61

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

zakallin69

Quote from: shawnb61 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.

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?

zakallin69

Quote from: zakallin69 on June 10, 2019, 06:12:06 AM
Quote from: shawnb61 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.

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.......

nax

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.

nax

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.

willemb

Quote from: shawnb61 on July 08, 2017, 03:01:04 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.

HusaBob

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.

Arantor

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...

laurent629

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.
"L'éternité c'est long, surtout vers la fin"
https://t.me/+gCXI0eeLfdNiMjA8

Kindred

Please post in English here ---   or ask your question in the French Language support boards. :D
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

laurent629

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.
"L'éternité c'est long, surtout vers la fin"
https://t.me/+gCXI0eeLfdNiMjA8

Illori

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/

Kindred

It's not that hard or elite...
I converted 4 sites to https in under 30 minutes.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aleksi "Lex" Kilpinen

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.
Slava
Ukraini!


"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

How you can help SMF

laurent629

Quote from: Illori 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/

So this is a very good thing. I am not the last to donate to forums.
I keep this link.
"L'éternité c'est long, surtout vers la fin"
https://t.me/+gCXI0eeLfdNiMjA8

HusaBob

Quote from: Aleksi "Lex" Kilpinen 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.

We use Site 5.

daverj

I have an SMF site running 2.0.17. It's installed in mydomain.com/forum [nofollow] but is accessed through forum.mydomain.com [nofollow]

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?

Advertisement: