{"id":14824,"date":"2021-12-26T11:31:21","date_gmt":"2021-12-26T18:31:21","guid":{"rendered":"https:\/\/macblaze.ca\/?p=14824"},"modified":"2021-12-26T11:31:21","modified_gmt":"2021-12-26T18:31:21","slug":"a-new-home","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=14824","title":{"rendered":"A New Home!"},"content":{"rendered":"<p>But hopefully you won&#8217;t notice.<\/p>\n<h2>I decided it was time<\/h2>\n<p>For a number of reasons I have been maundering about moving my webhosting and I finally made the leap. The last time I moved was back in <a href=\"https:\/\/macblaze.ca\/?p=5861\">January 2014<\/a>. So it was time, right? The first move was <a href=\"https:\/\/macblaze.ca\/?p=1176\">January 2010<\/a> from a home server to GoDaddy&#8230; that was barely 4 years. Complacency must have set in.<\/p>\n<p>The reasons? Well, in no particular order:<\/p>\n<h4>Speed<\/h4>\n<p>My old host was dreadfully slow sometimes and I could never figure out if it was my site design and years and years of clapping odds and sods together and shoddily attaching them to the site or just them. Moving gives me a chance to experiment with a new provider <em>and<\/em> to clean up a bunch of crud that has accumulated.<\/p>\n<h4>Money<\/h4>\n<p>2 more years of hosting on the old site was going to be $216 usd ($276 cad). Taking advantage of a &#8220;new customer&#8221; deal netted me 3 years for only $148 cad.<\/p>\n<h4>Canadian laws<\/h4>\n<p>I have become increasing disturbed by the slowly eroding privacy laws in the U.S. L had needed a Canadian-based server for her research project last fall and I did a bunch of research on Can-based hosts. Since I was moving, why not move to a Canadian company and avoid any increasingly privacy-creep that seems to be the American judicial system. And I know, it really is more symbolic that actual, but still. Oh, and it&#8217;s &#8220;buy Canada&#8221; too! So I get loyalty points.<\/p>\n<h4>Python<\/h4>\n<p>One of the things I noted when I was doing my research was that some hosting companies allowed python and ruby apps. It was a point of great frustration a few years ago that I had to host my apps on my home server. This new host allows such apps to be hosted. I probably won&#8217;t move my old ones now but any new apps can be hosted off my home site.<\/p>\n<h2>Downsides?<\/h2>\n<h4>Time and effort<\/h4>\n<p>It took half a day of planning most of a day work to move everything and I am still not sure its been 100% successful. But I like puttering and I learned some shit so why not.<\/p>\n<h4>rsync<\/h4>\n<p>So far the only big downside is <code>rsync<\/code> doesn&#8217;t seem o work on the new host. I will have to ask when I get to that point. <em>Rsync<\/em> was what I used to deploy my hugo website automatically: syncing my desktop files to the server. I can use ftp in the mean time but just typing <code>deploy<\/code> was a great way to update things.<\/p>\n<h2>What do I spend this money for?<\/h2>\n<p><a href=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/whc-christmas.png\"><img loading=\"lazy\" class=\"size-full wp-image-14830 alignnone\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/whc-christmas.png\" alt=\"\" width=\"198\" height=\"66\" srcset=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/whc-christmas.png 198w, https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/whc-christmas-150x50.png 150w\" sizes=\"(max-width: 198px) 100vw, 198px\" \/><\/a><br \/>\nMy new host! Oddly enough L&#8217;s research project is hosted here and they suffered a nigh-on-catastrophic breach this past summer. Luckily, at least for us, everything was restored pretty thoroughly. So why did I pick them? Well I figured that the security breach probably taught them a huge lesson and, at least for a while, they are going to have some pretty hot and up-to-date security in place. And all the reasons above.<\/p>\n<p>And I learned a lesson about my own back-ups as well. \ud83d\ude42<\/p>\n<h4>webhosting<\/h4>\n<p>I host a number of sites.<br \/>\n&#8211; <a href=\"http:\/\/macblaze.ca\" target=\"_blank\" rel=\"noopener\">macblaze.ca<\/a>\u2014my personal home since 2005<br \/>\n&#8211; <a href=\"http:\/\/neverforever.ca\" target=\"_blank\" rel=\"noopener\">neverforever.ca<\/a>\u2014our boating site<br \/>\n&#8211; <a href=\"http:\/\/astart.ca\" target=\"_blank\" rel=\"noopener\">astart.ca<\/a>\u2014my professional site<br \/>\n&#8211; <a href=\"http:\/\/theboozephiles.com\" target=\"_blank\" rel=\"noopener\">theboozephiles.com<\/a>\u2014 my, L&#8217;s, C&#8217;s and Z&#8217;s cocktail site. Check it out if you like booze!<br \/>\n&#8211; <a href=\"http:\/\/beakerwood.ca\" target=\"_blank\" rel=\"noopener\">beakerwood.ca<\/a>\u2014my brother&#8217;s woodworking site. permanently under construction these days<\/p>\n<p>And two more for C which are little more than placeholders but I keep hoping she will let me make her some spiffy sites.<br \/>\n&#8211; <a href=\"http:\/\/reluctantlyyours.ca\" target=\"_blank\" rel=\"noopener\">reluctantlyyours.ca<\/a><br \/>\n&#8211; <a href=\"http:\/\/littlefirecreative.ca\" target=\"_blank\" rel=\"noopener\">littlefirecreative.ca<\/a><\/p>\n<h4>subdomains<\/h4>\n<p>I also use a bunch of subdomains to direct web traffic to various projects and my home server. This is an offshoot of my handy <a href=\"https:\/\/macblaze.ca\/?p=14445\">Pi Nginx<\/a> project!<\/p>\n<h4>email<\/h4>\n<p>At least 4 site-specific email addresses. I have no idea why people shell out for mybusiness.com and then use mybusiness@gmail&#8230; seems a waste of resources. Most of them just forward to my existing addresses but at least one is standalone.<\/p>\n<h4>various projects<\/h4>\n<p>I have hosted api&#8217;s, static sites, otehr people&#8217;s domains etc. It gives me a lot of flexibility\u2014and as I mentioned above I can now host python web apps.<\/p>\n<h2>A bit more complicated but&#8230;<\/h2>\n<p>So how was the move compared to <a href=\"https:\/\/macblaze.ca\/?p=5861\">last time<\/a>? A bit more efficient, but also a bit more complex wth all the various sites. 3 of them were WordPress sites with associated mysql databases and structures and the other 4 were just static. So I did a massive host-wide backup and downloaded the 9-gig zip file to my desktop. I also exported the 3 mysql databases using the\u00a0 backup tool.<\/p>\n<p>After that I, one-by-one, starting with the smallest and easiest (beakerwood.ca), worked on a site:<\/p>\n<ol>\n<li>Create a subdomain<\/li>\n<li>Upload the files<\/li>\n<li>Changed the nameservers (on GoDaddy)<\/li>\n<li>Made a small edit to the index.html\/php file for checking purposes<\/li>\n<li>And waited about 10\u201320 minuted for the domain name to propagate through the internet<\/li>\n<\/ol>\n<p>And voila!<br \/>\n<a href=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-14832\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE-400x90.png\" alt=\"\" width=\"400\" height=\"90\" srcset=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE-400x90.png 400w, https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE-1024x230.png 1024w, https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE-150x34.png 150w, https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE-768x172.png 768w, https:\/\/macblaze.ca\/wp-content\/uploads\/2021\/12\/astartCSE.png 1096w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>The WordPress sites started with creating a new, empty mysql database and the using phpMyAdmin to import the files downloaded from the old server. Then it was simply a matter of zipping the dowloaded wp installation, uploading it and then extracting the files. Like last time back in 2014 I tried uploading the un zipped files first and it was excruciatingly slow. But I clued in quicker this time. You would have thought I would go back and read those notes (since that is primarily what this site is for) but no&#8230; dumb, dumb, dumb\u00a0 \ud83d\ude09<\/p>\n<p>The only thing I had to do was change the wp-config.php file to use the new database name and credentials. It all worked smoothly except for macblaze.ca but eventually I got my silly errors straightened out.<\/p>\n<h4>add emails<\/h4>\n<p>Since they were mostly forwards this was simply a matter of adding new emails tot eh new host. Everything else (smtp servers etc) stayed the same.<\/p>\n<h4>ssh<\/h4>\n<p>I had a bit of trouble getting ssh to work but it was because they use a different port. A quick chat with tech support straightened me out. Now I just have to figure out the rsync thing.<\/p>\n<h2>C&#8217;est tout<\/h2>\n<p>That&#8217;s pretty much it. So far, so good. I cancelled my account at Stablehost and already got back a &#8220;please don&#8217;t go, here is 6 months free&#8230;&#8221; note, but I am committed now. We shall see&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>But hopefully you won&#8217;t notice. I decided it was time For a number of reasons I have been maundering about moving my webhosting and I finally made the leap. The last time I moved was back in January 2014. So it was time, right? The first move was January 2010 from a home server to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/14824"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14824"}],"version-history":[{"count":6,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/14824\/revisions"}],"predecessor-version":[{"id":14834,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/14824\/revisions\/14834"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}