I moved all the websites I have or manage to WebFacton this past weekend. It was, as they say, a non-trivial undertaking. Broken down into categories and in rough order of execution here is how I did the move.
Account Creation
Creating an account with WebFaction is straight-forward and quick. The signup process allows you to choose your account id and my first choice was immediately accepted. I’m used to having to trial-and-error my way through increasingly unlikable user ids to find one that hasn’t already been taken. Getting my first choice was nice. Even though the site warned me that it may take an hour for my account to be activated in truth it was more like 15 minutes.
Four years ago when I signed up with Bluehost I didn’t realize that my user id would be the first 8 characters of the primary (first) domain I hosted there. I ended up canceling my first account, getting my money back, and creating a new account in order to have a marginally acceptable user id. A small thing to be hung up on perhaps, but illustrative of the different approach WebFaction has so far displayed.
Setup
Like any nerd I immediately signed in to my new account both through the my.webfaction.com URL and through a command line using secure shell (ssh). I was delighted to discover that WebFaction supports either bash or zsh as your default shell. For nearly a year now I’ve been using zsh anywhere and everywhere I can and one of the first things I setup on the new server was my zsh configuration. This was made easier since WebFaction also includes Git.
Git
I have kept all my configuration files, including my zsh setup in a Git repository for some time now. Being able to clone that setup to my new WebFaction account with a single command made my afternoon last Friday. With my dotfiles repository in place, oh-my-zsh installed, and some ln -s commands issued to link everything together I had my preferred setup on the new remote server.
Control Panel
Unlike many shared-IP hosting providers, WebFaction does not use cPanel as the default set of tools used to manage your account. Instead they have developed their own control panel. It is very easy to use and doesn’t have all the pseudo-spammy extras that every other cPanel installation seems to come with. With just a few minutes exploring I was able to find my way around the WebFaction control panel with ease. Best of all they have excellent documentation.
Applications
WebFaction has the concept of an “application”. Each application is really a container for holding resources used to create a site. The application may be static or dynamic. It is easy to pre-install a number of tools including Rails, Django, and WordPress. I created eleven applications: 4 WordPress and the rest static. From the command line I could see that the webapps directory was being populated with new sub-directories named for the applications I was creating. Simple and straight-forward.
With the application container in place I started moving the resources that made up each site from the old Bluehost server to the new WebFaction one. The smaller static sites were done first as they were less complicated - just copy the html, css, and other files. In the case of the WordPress sites I needed to do some setup to the WordPress installation WebFaction did for me. Each of the 4 WordPress sites I moved has its own theme and collection of plugins. Once I had the theme installed (or copied from Bluehost) and the plugins installed and configured, I used the export/import feature in WordPress to move the content.
Websites
Applications are mapped to domains through a website. It is possible to map the same application to multiple domains or sub-domains. Initially I mapped all 11 applications to my default WebFaction domain: <userid.webfactional.com>. This allowed me to view the sites without having to initiate the name server change. I just mapped each new application to a new path on my default domain. So for application-x I created a website record that mapped it to userid.webfactional.com/site-x. Once I could see each site through this mapping I was able to address any issues that had cropped up during the move.
Domains and Name Server Changes
With sites in place the next step was to add the domain to WebFaction. This was a two-step process. I added the domain and created a new website record mapping the appropriate application. Next I went to the Domain Manager on Bluehost to change the name server records. Once the name server change had been initiated all I could do was wait for the new information to propagate through the DNS system. Most of the changes I made resolved within 24 hours.
Like applications and website, mailboxes and email addresses are separate. I created a mailbox for each address we currently have. Next I created an email address that was mapped to that mailbox. It would be possible to have multiple email addresses mapped to the same mailbox.
Two of the email addresses I moved had thousands of emails associated with them. Moving an IMAP-based email account is not the easiest thing in the world. After much trial-and-error, including a €30 purchase of imapsync, I was able to transfer some 22,000 emails through the brute force method of copying them from the Bluehost account to a local email folder on one of our laptops and then copying them from the local email folder to the new WebFaction email account. I believe imapsync would have worked, but I was too tired at the time I was working with it (midnight on a 14-hour day) to figure it out. It’s an industrial strength package with industrial strength options.
Of all the steps I completed getting email moved successfully was the most stressful and most time consuming. See the Afterward below for more on email.
Databases
In addition to the four WordPress databases, which were automatically created for me when I created each WordPress application, I needed three more databases for the Mint visit tracking system used on three of our sites. So as to not lose any visits during the move I wanted to have external access granted to these three databases. That way I could point the Bluehost instance of the site to the WebFaction based Mint database. With the WebFaction instance of the site also pointed to the WebFaction Mint database any visit to the site would be tracked no matter when the name server change propagated.
I was able to submit a support ticket to WebFaction requesting the external access and access was granted within minutes.
Support
WebFaction’s support has been outstanding through-out this process. I was able to ask questions before signing up, helping me to plan my steps. And I was able to create a couple of tickets asking for help during my move. Both support processes were easy to use and both provided quick, helpful answers.
Registration Transfer
With all the sites up and running on WebFaction’s servers and all name server changes propagated I started the domain registration transfer. Bluehost has been our domain registrar but I wanted to completely cut ties with them. Rather than put all my domain eggs in one basket I decided to use NameCheap.com as my registrar. Working with NameCheap has been very good. They have a transfer how-to page for many of the more popular domain registrars, including Bluehost. Following the how-to steps I was able to unlock and transfer all seven domains. While the process can take up to 5 days, all seven of my transfers completed within a few hours.
Cleanup
As a just-in-case measure I compressed and downloaded all the files and directories I had under public_html on Bluehost. I shouldn’t ever need these archives, but it feels good to have them any way. I then deleted any file I created or uploaded to my Bluehost account. The final step will be to cancel the account and initiate a refund for the final six months of my pre-paid account.
I need to investigate some weirdness with how Thunderbird is working with the new mailbox for Sibylle’s email address. She isn’t able to copy messages from her inbox to some, but not all, sub-folders. I am hoping that removing the account and re-adding it will clear up the issue.
The connection between my site and the Mint instance it uses for visit tracking isn’t working reliably at the moment. I’m not sure what the issue is here.
There were two sub-domains on my site that I rarely ever used that I haven’t done anything about yet. One was a personal wiki and the other a Tumblr site. The Tumblr still works, it just isn’t mapped to a sub-domain of zanshin.net any more. I may or may not recreate the personal wiki - I tend to use Evernote for the same purpose now.
Afterward
If I had to do this all over I would do most of it the same way. I forced myself to make a checklist (a sanitized version of which is below) and used it religiously. As I learned from one task I updated all similar tasks. Having everything written down was critical to keeping my sanity. The original checklist had 97 steps. The final one has over 300.
The biggest thing I would change would be my approach to email. Email is only logically tied to your website. It shares the domain name, but it is a wholly separate resource. If I were re-doing this I would create the new mailboxes first, and start the process of migrating the email first. Then I would tackle the comparatively simple process of setting up the sites and their associated resources.
The Checklist
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | |