Hosting - How do I move my SMF forum to a different host: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
mNo edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The move consists of 3 steps:
The move consists of ten steps:


*'''Step 1''' - Move the public html files of the forum (these are the files in your forum install directory). Usually, the best way to do this will be to download the files to your pc, and then upload them again on the new host. Some hosts have a "transfer service" which will log into your old host via FTP, grab all the files, and copy them to your new host. If your host has this feature, it is up to you to make certain that all of the files were successfully transferred.
*'''Step 1''' - Prepare by checking whether you have an SSL cert. You should also discuss transfer and installation with your new host.


*'''Step 2''' - Move your forum's database data from the old host to the new host. Use these FAQs for moving your database structure and data: [[Backup]] and [[How do I restore the database data]]?
*'''Step 2''' - Make a file system [[Backup|backup]].


*'''Step 3''' - If the URL or server path settings have changed (likely so), you will have to change the forum settings to point to the new URL and server paths. The [[repair_settings.php]] tool can do most of the work for you automatically, although, you'll may need to manually update the paths for some of your custom themes and/or mods. To change theme settings, go to your admin panel>Themes and Layout>Theme settings and, right at the bottom of the page, click "Attempt to reset all themes". If you have any mods which include paths or URLs in their settings, you will need to go to the settings page for each mod and update the values there.
*'''Step 3''' - Make a database backup at the same time to ensure that the two backups are in sync.
 
*'''Step 4''' - Restore the files and the database within the target system.  Note that restoring the files and database can be a substantial and time consuming task and that some hosts have size limitations on restoring these.  Large databases can sometimes pose a challenge and your import will not complete due to size constraints.  Some of the strategies that can be employed for managing a forum with a large databases are as follows:
**Clear the error log before carrying out the database backup.
**Clear the search index (where the largest tables are often located) before carrying out the database backup and rebuild the search index once your forum is functional.
**A SQL file splitter can help because it breaks the database backup into smaller pieces.   
 
If you encounter problems ask your new host to carry out this step.
 
*'''Step 5''' - Run [[repair_settings.php]] on the new system to ensure that your paths, URLs, and database credentials are correct.
 
*'''Step 6''' - Carefully inspect any redirects that may exist in either .htaccess or index.html to ensure that they are not referencing old directory/file structures.
 
*'''Step 7''' - Inspect the settings for each mod that you have installed.  Look for folders or URLs that need updating.  [[Repair_settings.php]] does not update mod settings, so you have to identify these and update them yourself.
 
*'''Step 8''' - As a safety measure and to ensure that everything is linked together correctly, it is recommended that you run the forum database maintenance function, the 'find and fix any errors' maintenance function, and the attachment integrity check.  If any of these generate errors it means that something has gone wrong.
 
*'''Step 9''' - Coordinate the IP address change with your registrar.  Note this takes time and may make the forum inaccessible for a while.
 
*'''Step 10''' - If you use Google or Bing webmaster tools, or if you have a robot.txt file, you should confirm they are working as expected after the site migration has taken place.


<noinclude>[[Category:FAQ]]</noinclude>
<noinclude>[[Category:FAQ]]</noinclude>

Latest revision as of 14:47, 2 July 2018

The move consists of ten steps:

  • Step 1 - Prepare by checking whether you have an SSL cert. You should also discuss transfer and installation with your new host.
  • Step 2 - Make a file system backup.
  • Step 3 - Make a database backup at the same time to ensure that the two backups are in sync.
  • Step 4 - Restore the files and the database within the target system. Note that restoring the files and database can be a substantial and time consuming task and that some hosts have size limitations on restoring these. Large databases can sometimes pose a challenge and your import will not complete due to size constraints. Some of the strategies that can be employed for managing a forum with a large databases are as follows:
    • Clear the error log before carrying out the database backup.
    • Clear the search index (where the largest tables are often located) before carrying out the database backup and rebuild the search index once your forum is functional.
    • A SQL file splitter can help because it breaks the database backup into smaller pieces.

If you encounter problems ask your new host to carry out this step.

  • Step 5 - Run repair_settings.php on the new system to ensure that your paths, URLs, and database credentials are correct.
  • Step 6 - Carefully inspect any redirects that may exist in either .htaccess or index.html to ensure that they are not referencing old directory/file structures.
  • Step 7 - Inspect the settings for each mod that you have installed. Look for folders or URLs that need updating. Repair_settings.php does not update mod settings, so you have to identify these and update them yourself.
  • Step 8 - As a safety measure and to ensure that everything is linked together correctly, it is recommended that you run the forum database maintenance function, the 'find and fix any errors' maintenance function, and the attachment integrity check. If any of these generate errors it means that something has gone wrong.
  • Step 9 - Coordinate the IP address change with your registrar. Note this takes time and may make the forum inaccessible for a while.
  • Step 10 - If you use Google or Bing webmaster tools, or if you have a robot.txt file, you should confirm they are working as expected after the site migration has taken place.


Advertisement: