Advertisement:

Author Topic: Migrating Forum to another domain  (Read 335 times)

Offline pepa

  • Jr. Member
  • **
  • Posts: 190
Migrating Forum to another domain
« on: March 11, 2018, 11:59:49 PM »
Haven't done this before, so somewhat cautious.  I presume the main issue will be with URL's and I correct that by running repair-settings.php ... is that correct?

Also, more specifically, I have a folder one level up from the forum, the folder contains lots of files linked to from a post in the forum.  Will repair setting change the existing URL path in that post to the correct one, or do I need to modify the post and change them myself?

Offline GigaWatt

  • Support Team Apprentice
  • Full Member
  • ***
  • Posts: 507
  • Gender: Male
    • Macedonian electronics forum
Re: Migrating Forum to another domain
« Reply #1 on: March 12, 2018, 05:53:00 AM »
Haven't done this before, so somewhat cautious.  I presume the main issue will be with URL's and I correct that by running repair-settings.php ... is that correct?

Yep :). Just make sure that the suggested values are correct. The rapair_settings.php doesn't always detect the new values correctly, so you may have to input the new values manually in some places (not what the script suggests).

Also, more specifically, I have a folder one level up from the forum, the folder contains lots of files linked to from a post in the forum.  Will repair setting change the existing URL path in that post to the correct one, or do I need to modify the post and change them myself?

If the post contains your previous URL (previousdomain.com/somedir), yes, you'd have to change the URL as well (currentdomain.com/somedir)
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,219
  • Gender: Male
    • Kindred-999 on GitHub
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 jakes_t

  • Semi-Newbie
  • *
  • Posts: 30
Re: Migrating Forum to another domain
« Reply #3 on: March 12, 2018, 06:22:36 PM »
The biggest challenge I faced when doing this was exporting the database and importing it again on the new host. You can do it from phpmyadmin or from cpanel normally, I had issues with the import not doing all the tables. I ended up using phpmyadmin but will opt for the cpanel method next time round.

Offline Gazmanafc

  • Lead Customizer
  • SMF Super Hero
  • *
  • Posts: 17,549
  • Gender: Male
  • So this is the luck of the draw...
    • Gazmanafc on Facebook
    • garygadsdon on LinkedIn
    • @Gazmanafc on Twitter
    • The Bongo Comics Fan Forum
Re: Migrating Forum to another domain
« Reply #4 on: March 12, 2018, 09:25:57 PM »
If you need to import a large database or phMyAdmin keeps timing out then a tool exists called BigDump that'll be able to import it as it staggers the process.
Gary M. Gadsdon
Do NOT PM me unless I say so

War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Offline pepa

  • Jr. Member
  • **
  • Posts: 190
Re: Migrating Forum to another domain
« Reply #5 on: March 14, 2018, 03:45:12 AM »
Thanks for all your advice everyone, a really helpful community : ).

Gazmanafc ... my forum is only in it's very early stages, so not a lot in the database, but will keep your suggestion in mind for future purposes.  The migration is due to occur in approx 3 weeks, I'll post here and let you know how it all went and what I had to do.  Meanwhile I'll mark this topic as solved.