News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SS!/https version of repair_settings.php ?

Started by aegersz, November 27, 2016, 09:43:49 PM

Previous topic - Next topic

aegersz

The version of repair_settings.php that i have does NOT support https/SSL, unless you can tell me something that I overlooked.

Is there a version that does, please ?

otherwise, i have to change my Theme defaults and Server Settings Paths manually, it's no big deal but i thought maybe it would make life a little easier and i'm thinking that you have to do it eventually.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

vbgamer45

Doesn't exist currently SMF 2.0 originally wasn't built with https in mind
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

Ummm... it seemed to work for me when I switched my sites to https.

I changed the htaccess first, and then changed the based URLs
Сл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."

aegersz

Well Kindred, if you try it now but without changing everything, I'd be interested to see what it suggests to you ... it's no big deal though
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

aegersz

it doesn't matter, i adapted it myself. I changed the line shown below from "http:" to "https:"

$url = 'https://' . $host . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'));

tested and works well.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

willerby

Ok, I'm new to SSL/https and have just implemented on my forum/host without thinking through the implications. I can now no longer log in and nor can my members. Bit of a cock-up.

I'm reading aegersz posts and don't fully understand what I need to do. Could someone elaborate and provide a step by step guide? Pretty please...

This all came about because I use Tapatalk BYO which will require https from 1st January to continue working on Apple. I'm beginning to think I have seriously messed up here  :-\
What type of washing machine is September?

An autumnatic. :)

d3vcho

Hello!

Go to Repair_Settings.php and change line 472 to what aegersz posted. Don't know if that's the best solution.

Regards :)
"Greeting Death as an old friend, they departed this life as equals"

willerby

Where is repair_settings.php, I can't find it anywhere?
What type of washing machine is September?

An autumnatic. :)

d3vcho

Sorry, I thought you already got the file. You can download it here: http://download.simplemachines.org/?tools

Regards :)
"Greeting Death as an old friend, they departed this life as equals"

willerby

Ok, so I make the change then upload the file to root (or /forum sub-directory?) and access it on a browser. Is that correct? I'm used to editing php code but never had to use this before. Thanks
What type of washing machine is September?

An autumnatic. :)

d3vcho

If your forum is in a subdirectory, you'll have to access through it, for example: web.com/forum/repair_settings.php

Regards :)
"Greeting Death as an old friend, they departed this life as equals"

willerby

Thanks for the clarification.

Unfortunately, on its own the repair_settings.php simple amend didn't work for me, I suspect due to the many mods and tailored code / portal front end etc that I have built over the years. My host has kindly removed SSL and all is back as it should be but this now creates a little conundrum for me.

I have already moved to a custom Responsive theme and allowed my club members to access via Tapatalk BYO for Apple IoS and Android/Google. Regular users like the simpler interfaces of the App on their phones, preferring the Responsive full site for tablets and desktop/laptops (which is also pretty good for irregular phone visitors). Given all of these options really needs https:// at some point in the future I have the feeling I am going to have to undergo a major revamp when 2.1 goes RC, or get under the bonnet and manually fix the issues various mods may be having in 2.0.12.

Right now looks like its goodbye to Tapatalk from 1st January. :(
What type of washing machine is September?

An autumnatic. :)

Kindred

my site is running https/ssl just fine...  so, SMF works perfectly well on https already

(that being said, I think that tapatalk is a complete waste, myself)
Сл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."

yamiacaveman

I had no problem updating to SSL

Under these conditions -- My site was a relatively new install although many mods had been installed.
My Web Server Hosts - aided my conversion

  They offered a free SSL certificate and they made sure it was enabled form me.
  The redirect to 301 from HTTP to HTTPS did not seem to work so they wrote and installed a few lines of code in my .htaccess file and that corrected the going to SSL problem
  Some things still did not work or I was not getting the green bar or pad lock on some of my pages.
  My host directed me to the repair-settings program -- READ and Followed the directions to the best of my limited abilities in the repair _settings program

My version 2.0.12
I believe I ran the database first
then the urls
then I had to adjust manually urls that were listed as HTTP to HTTPS
Had no problems

I don't know if the order of doing things has anything to do with it, again with help from my host, because I know nothing, I made it through the conversion basically painless.

So in my case
got SSL up and running first
Got redirect up and running
Ran the repair_sttings -- first database then URL's then had to manually adjust some URL's
No problems.

I hope that helps and hope you get it going.

yamiacaveman



aegersz

My suggested change to Repair_Settings.php can be of use also to cloned systems or your test systems, if they run SSL.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Illori

Quote from: aegersz on December 20, 2016, 12:58:33 AM
My suggested change to Repair_Settings.php can be of use also to cloned systems or your test systems, if they run SSL.

we are working on updating repair_settings.php [all in lowercase] to support https URLs.

aegersz

Good move ... at least we started to get the ball rolling on this matter.

Moving to SSL gave me the impetus to secure the other weaknesses on my whole server.

My members asked me many times to implement SSL as they saw my site as a potential risk and weren't really happy about it considering that if anybody managed to access their email addresses then significant legal actions could possibly ensue (by law enforcement). It's is conceivable that I could be subpoenaed to turn over my entire database if we fail  to enforce our strict rules.

It's all about keeping my members happy and I take each complaint seriously.

I use repair_settings.php every time I refresh my cloned and test/mirror site (often daily). The cloned site allows us admins and staff to access any member to see what they might be up if we suspect that are trying to trade.

Thanks for addressing it.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Mike66

Quote from: Illori on December 20, 2016, 05:19:22 AM
Quote from: aegersz on December 20, 2016, 12:58:33 AM
My suggested change to Repair_Settings.php can be of use also to cloned systems or your test systems, if they run SSL.

we are working on updating repair_settings.php [all in lowercase] to support https URLs.

Hi Illori,

Is this now updated and ready to use for a simple https conversion please?

I am considering moving to SSL, but will only do so if the move is hassle free 'for dummies'  :D

Best wishes
Mike

Illori

it should be uploaded as far as i know but you should wait until 2.0.14 unless you want all your images users may embed in posts to cause issues.

Mike66

Thanks for your reply ..... I'll keep an eye open for 2.0.14  :)

Best wishes
Mike

Advertisement: