Advertisement:

Author Topic: SS!/https version of repair_settings.php ?  (Read 19430 times)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
SS!/https version of repair_settings.php ?
« on: November 27, 2016, 09:43:49 PM »
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.
« Last Edit: November 27, 2016, 09:58:27 PM by aegersz »
The configuration of my Linux VPS (SMF 2.0 with 145 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)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,551
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SS!/https version of repair_settings.php ?
« Reply #1 on: November 27, 2016, 10:31:56 PM »
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

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,498
  • Gender: Male
    • Kindred-999 on GitHub
Re: SS!/https version of repair_settings.php ?
« Reply #2 on: November 27, 2016, 11:02:00 PM »
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
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 aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SS!/https version of repair_settings.php ?
« Reply #3 on: November 28, 2016, 12:36:14 AM »
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 145 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)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SSL/https version of repair_settings.php ?
« Reply #4 on: November 30, 2016, 12:56:18 AM »
it doesn't matter, i adapted it myself. I changed the line shown below from "http:" to "https:"

Code: [Select]
$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 145 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)

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: SSL/https version of repair_settings.php ?
« Reply #5 on: December 16, 2016, 03:43:17 PM »
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. :)

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,856
  • Gender: Male
    • frandominguez03 on GitHub
Re: SS!/https version of repair_settings.php ?
« Reply #6 on: December 16, 2016, 03:57:56 PM »
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."

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: SS!/https version of repair_settings.php ?
« Reply #7 on: December 16, 2016, 04:26:21 PM »
Where is repair_settings.php, I can't find it anywhere?
What type of washing machine is September?

An autumnatic. :)

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,856
  • Gender: Male
    • frandominguez03 on GitHub
Re: SS!/https version of repair_settings.php ?
« Reply #8 on: December 16, 2016, 04:27:43 PM »
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."

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: SS!/https version of repair_settings.php ?
« Reply #9 on: December 16, 2016, 04:45:44 PM »
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. :)

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,856
  • Gender: Male
    • frandominguez03 on GitHub
Re: SS!/https version of repair_settings.php ?
« Reply #10 on: December 16, 2016, 04:47:11 PM »
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."

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: SS!/https version of repair_settings.php ?
« Reply #11 on: December 16, 2016, 06:06:25 PM »
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. :)

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,498
  • Gender: Male
    • Kindred-999 on GitHub
Re: SS!/https version of repair_settings.php ?
« Reply #12 on: December 16, 2016, 10:09:19 PM »
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)
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 yamiacaveman

  • Semi-Newbie
  • *
  • Posts: 20
Re: SS!/https version of repair_settings.php ?
« Reply #13 on: December 17, 2016, 09:55:13 AM »
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



Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SS!/https version of repair_settings.php ?
« Reply #14 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.
The configuration of my Linux VPS (SMF 2.0 with 145 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)

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,259
Re: SS!/https version of repair_settings.php ?
« Reply #15 on: December 20, 2016, 05:19:22 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.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: SS!/https version of repair_settings.php ?
« Reply #16 on: December 23, 2016, 04:51:44 PM »
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 145 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)

Offline Mike Barrio

  • Semi-Newbie
  • *
  • Posts: 62
Re: SS!/https version of repair_settings.php ?
« Reply #17 on: February 24, 2017, 04:17:30 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

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,259
Re: SS!/https version of repair_settings.php ?
« Reply #18 on: February 24, 2017, 05:03:32 AM »
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.

Offline Mike Barrio

  • Semi-Newbie
  • *
  • Posts: 62
Re: SS!/https version of repair_settings.php ?
« Reply #19 on: February 24, 2017, 09:39:19 AM »
Thanks for your reply ..... I'll keep an eye open for 2.0.14  :)

Best wishes
Mike