Migrating Everything to a Cloud VPS

Over the last six months, I undertook the project of migrating all of my web apps, sites, and other projects to a new XenHypervisor which I hosted at home for free.

I always thought of this as a transitional step. It doesn’t make sense to try to host these kinds of things at home. After all, I don’t want to be a datacenter provider, but I wanted to understand how they work before I outsourced my infrastructure to a good provider.

digital-ocean-logo

After lots of research, I decided on DigitalOcean (Referral Link) as the best option. It’s only $5/month and I don’t have to worry about infrastructure or connectivity issues.

  • Setting up the VPS was easy and took just a few seconds. DigitalOcean makes it very simple to create the new machine, and they had the latest version of Debian as an option.
  • Next, I setup an A-Record for (vps1.cjtrowbridge.com) a new subdomain off of my main domain. This serves as a FQDN for this new VPS. (Note that this is my second VPS, I am not using a 1-based index 😛 )
  • Referencing my previous tutorial about Setting Up Debian as a LAMP Server, I configured the new machine with all the normal tools.
  • I created virtual hosts for all the sites I was migrating in and copied those files and databases over to the new VPS.
  • I used this tutorial to secure the root web directory for the VPS’ FQDN. This directory contains all the directories for the virtual hosts and tools lime PHPMyAdmin, as well as the backups for other servers. With valid credentials, this lets you see all the tools, hosts, and backups.
  • Lastly, I setup BitTorrent Sync using this tutorial in order to securely backup files across the internet.