Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: skb on January 03, 2019, 03:42:35 AM

Title: Migrating servers on same host
Post by: skb on January 03, 2019, 03:42:35 AM
I have booked a multi site hosting plan with the same host (bigrock.in) and need to move my forum to a new server sometime before end of Feb. I suppose that this would still be relevant;

http://wiki.simplemachines.org/smf/Hosting_-_How_do_I_move_my_SMF_forum_to_a_different_host

Is there anything else that I should be concerned about ? Thanks in advance. 
Title: Re: Migrating servers on same host
Post by: Aleksi "Lex" Kilpinen on January 03, 2019, 04:45:39 AM
That should cover it pretty much, some mods might need further work, and some server configs might be more difficult than others to work with, but basically should be a fairly easy and straight forward operation.

Just make thorough backups of everything before you start, let your users know in advance, and be prepared that it might take some time if everything doesn't go exactly as planned.
Title: Re: Migrating servers on same host
Post by: SpacePhoenix on January 03, 2019, 06:56:42 AM
Do you have access to the new server yet? if you do it might be worth doing a test install on the new server to see what doesn't work properly and what is broke, so that you can have everything fixed ready for the actual move. Are you changing versions of SMF and/or either PHP and/or MySQL when you move servers?
Title: Re: Migrating servers on same host
Post by: drewactual on January 03, 2019, 09:15:21 PM
stupid question, but is the domain registered with this host or a domain reseller or top level registrar such as register dot com, ect.. ?

I made a move this summer past... and forgot to go to the place i registered the domain and provide and then flip the switch to the new DNS.... I started encountering black outs that couldn't be explained, until- DUH- went to the top level registrar, pointed it toward the new DNS server, and a short while later no more outages........ which brings up the next point:

IF you have to change DNS's at the top level registrar, alter the Time to Live to something like 5 minutes a week or so prior... in this case the Domain Name Servers will come back and check you at that interval- and allows for a rapid swap when the one server goes dark and the other lights up. 

if this is being managed for you, this can be disregarded.  if it's not? i sure wish someone would have reminded me of this little tidbit...
Title: Re: Migrating servers on same host
Post by: skb on January 04, 2019, 06:25:19 AM
Quote from: SpacePhoenix on January 03, 2019, 06:56:42 AM
Do you have access to the new server yet?
Are you changing versions of SMF and/or either PHP and/or MySQL when you move servers?

Yes, I have already moved another site to the new server, but that is a simple static site without a forum.
Software versions will remain the same.
I will give your suggestion a try.
Title: Re: Migrating servers on same host
Post by: skb on January 04, 2019, 06:27:27 AM
Quote from: drewactual on January 03, 2019, 09:15:21 PM
stupid question, but is the domain registered with this host or a domain reseller or top level registrar such as register dot com, ect.. ?

Yes, registered with this host. Like I said above, I have moved one site already and managed to change the Name Server settings without a hitch.
Title: Re: Migrating servers on same host
Post by: skb on January 04, 2019, 06:28:25 AM
Quote from: Aleksi "Lex" Kilpinen on January 03, 2019, 04:45:39 AM
Just make thorough backups of everything before you start, let your users know in advance, and be prepared that it might take some time if everything doesn't go exactly as planned.

That I will surely do. Thanks for all the inputs.
Title: Re: Migrating servers on same host
Post by: skb on January 14, 2019, 11:33:26 PM
One more related question please.

Right now my forum is at

www.diabetic.pub/forum

If I do away with the folder & move the forum to

www.diabetic.pub

Will changing the links in Repair Settings be enough or I will have to manually modify every link.
Title: Re: Migrating servers on same host
Post by: Aleksi "Lex" Kilpinen on January 14, 2019, 11:46:32 PM
Repair_settings will be enough for the forum itself, but of course every posted link will still point to the old location and you probably want to do something about that too. Perhaps add a redirect to the server, from the old location to the new location.
Title: Re: Migrating servers on same host
Post by: skb on January 16, 2019, 05:54:39 AM
Quote from: skb on January 14, 2019, 11:33:26 PM
Right now my forum is at
www.diabetic.pub/forum

If I do away with the folder & move the forum to
www.diabetic.pub

I think I should first accomplish this at the current server, and then shift to the new server. That would mean tackling one issue at a time and the migration would become easier. Right ?

Is there a write-up or a step-by-step guide for this ?
Title: Re: Migrating servers on same host
Post by: skb on January 17, 2019, 03:37:25 AM
I was able to move the forum to the root directory without a hitch. Also placed redirects so no user has trouble finding us. Thanks for all the inputs.
Title: Re: Migrating servers on same host
Post by: skb on January 30, 2019, 10:37:09 PM
I did a trial run as suggested and was able to move servers without much trouble.
I copied the forum files and database to the new server, and was able to connect without too many problems. The new server setup is a multi-site hosting plan. The primary domain is different from the forum domain.
Therefore the URLs are shown as www.primarydomain.org/diabetic.pub/index.php
To remove the primary domain from the URLs I added the following code to the .htaccess of the primary domain (public_html) but still the primary domain shows up.
Any help will be appreciated.
RewriteCond %{HTTP_HOST} ^(www\.)?diabetic\.pub$
RewriteRule ^.*$ '-' [R=301,L]
Title: Re: Migrating servers on same host
Post by: arakan on March 13, 2019, 01:47:42 PM
IF you have to change DNS's at the top level registrar, alter the Time to Live to something like 5 minutes a week or so prior... in this case the Domain Name Servers will come back and check you at that interval- and allows for a rapid swap when the one server goes dark and the other lights up. 
Title: Re: Migrating servers on same host
Post by: vbgamer45 on March 13, 2019, 01:53:53 PM
Quote from: arakan on March 13, 2019, 01:47:42 PM
IF you have to change DNS's at the top level registrar, alter the Time to Live to something like 5 minutes a week or so prior... in this case the Domain Name Servers will come back and check you at that interval- and allows for a rapid swap when the one server goes dark and the other lights up. 

Great tip most people forget that.