{"id":9596,"date":"2013-09-19T14:31:24","date_gmt":"2013-09-19T13:31:24","guid":{"rendered":"https:\/\/brennigjones.com\/blog\/?p=9596"},"modified":"2013-09-21T10:13:39","modified_gmt":"2013-09-21T09:13:39","slug":"moving-the-second-part-iv","status":"publish","type":"post","link":"https:\/\/brennigjones.com\/blog\/?p=9596","title":{"rendered":"Moving the second (part IV)"},"content":{"rendered":"<p><strong>How to migrate a website called fredbloggs.com from a commercial host to your Synology Diskstation with no loss of uptime:<\/strong><\/p>\n<p>Before you start, you need:<\/p>\n<ul>\n<li>a static IP address from your ISP<\/li>\n<li>port forwarding configured on your router<\/li>\n<\/ul>\n<p>You will also need:<\/p>\n<ul>\n<li>a locally-saved backup of your current live database<\/li>\n<li>a locally-saved backup of the current live content\/files<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Steps 1 &#8211; 4 are all Synology Diskstation tasks:<\/strong><\/p>\n<p><strong>1.<\/strong> Control panel -&gt; Web services -&gt; Virtual host -&gt;<\/p>\n<ul>\n<li>subfolder name: (enter the website without the TLD suffix) fredbloggs<\/li>\n<li>folder name: (enter the full address of the website) fredbloggs.com<\/li>\n<li>click OK<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>2.<\/strong> Installed packages control panel -&gt; DNS Server -&gt; Zones -&gt; Create Master Zone -&gt;<\/p>\n<ul>\n<li>Domain type: (select) Forward Zone<\/li>\n<li>Domain name: (enter the full address of the website) fredbloggs.com<\/li>\n<li>Master DNS server: (enter the static IP address)<\/li>\n<li>click OK<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>3.<\/strong> Installed package control panel -&gt; phpMyAdmin -&gt; Databases -&gt;<\/p>\n<ul>\n<li>Create database fredbloggs \/ utf8_general_ci<\/li>\n<li>go to database fredbloggs<\/li>\n<li>Privileges -&gt; New Add User -&gt;<\/li>\n<li>User name: fredbloggs<\/li>\n<li>host: localhost<\/li>\n<li>password: [whatever]<\/li>\n<li>retype: [whatever]<\/li>\n<li>Database for user: Grant all privileges on database &#8220;fredbloggs&#8221;<\/li>\n<li>Global privileges: leave all unchecked<\/li>\n<li>Resource limits: leave as default<\/li>\n<li>Click Add User<\/li>\n<li>Click Import<\/li>\n<li>Click Choose file<\/li>\n<li>Navigate to your locally-saved backup MySQL database<\/li>\n<li>Click Open (the database will import)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>4.<\/strong> Filestation -&gt; navigate to your locally-saved copy of content\/files<\/p>\n<ul>\n<li>Copy all backed up, locally-saved content\/files to the webfolder &#8216;fredbloggs&#8217; in the Web directory of your NAS<\/li>\n<li>(nb: you may need to change the DB Hostname in your config.php file, to point to &#8216;localhost&#8217;)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>5.<\/strong> Log in to your Domain Registrar control panel -&gt; Edit the zone file so the @ record points to your static IP address<\/p>\n<p><strong>6.<\/strong> Drink tea (it could take a few hours for the new server address to propagate around the internet, but while this is happening your website will not drop. nb: do not enter new content to the website until the change has been propagated)<\/p>\n<p>&nbsp;<\/p>\n<p>Email accounts associated with that domain name are a kettle of different fish that I haven&#8217;t yet got my head around.<\/p>\n<p>I&#8217;ll do that after more tea.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to migrate a website called fredbloggs.com from a commercial host to your Synology Diskstation with no loss of uptime: Before you start, you need:<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9596","post","type-post","status-publish","format-standard","hentry","category-stuff","two-columns"],"_links":{"self":[{"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9596"}],"version-history":[{"count":0,"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9596\/revisions"}],"wp:attachment":[{"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brennigjones.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}